pub struct StartupState {
view: Mutex<StartupView>,
in_progress: AtomicBool,
}Expand description
Shared startup phase, guarded so only one check runs at a time.
Fields§
§view: Mutex<StartupView>§in_progress: AtomicBoolImplementations§
Source§impl StartupState
impl StartupState
Sourcefn set(&self, view: StartupView)
fn set(&self, view: StartupView)
Replaces the current phase.
Sourcepub fn view(&self) -> StartupView
pub fn view(&self) -> StartupView
Returns the current phase.
Auto Trait Implementations§
impl !Freeze for StartupState
impl RefUnwindSafe for StartupState
impl Send for StartupState
impl Sync for StartupState
impl Unpin for StartupState
impl UnsafeUnpin for StartupState
impl UnwindSafe for StartupState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more