pub enum LifecycleState {
Created,
Started,
Resumed,
Paused,
Stopped,
Destroyed,
}Expand description
Android-style lifecycle state exposed to composition observers.
Variants§
Implementations§
Source§impl LifecycleState
impl LifecycleState
Sourcepub fn is_at_least(self, other: LifecycleState) -> bool
pub fn is_at_least(self, other: LifecycleState) -> bool
Whether this state is at least as active as other, counting paused
as started and stopped as created — Android’s isAtLeast.
Trait Implementations§
Source§impl Clone for LifecycleState
impl Clone for LifecycleState
impl Copy for LifecycleState
Source§impl Debug for LifecycleState
impl Debug for LifecycleState
impl Eq for LifecycleState
Source§impl PartialEq for LifecycleState
impl PartialEq for LifecycleState
impl StructuralPartialEq for LifecycleState
Auto Trait Implementations§
impl Freeze for LifecycleState
impl RefUnwindSafe for LifecycleState
impl Send for LifecycleState
impl Sync for LifecycleState
impl Unpin for LifecycleState
impl UnsafeUnpin for LifecycleState
impl UnwindSafe for LifecycleState
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