pub enum StateLifecycle {
Created,
Initialized,
Ready,
Defunct,
}Expand description
Tracks the lifecycle of State objects when asserts are enabled.
Variants§
Created
The State object has been created. State::init_state is called at this time.
Initialized
The State::init_state method has been called but the State object is not yet
ready to build. State::did_change_dependencies is called at this time.
Ready
The State object is ready to build and State::dispose has not yet been called.
Defunct
The State::dispose method has been called and the State object is no longer
able to build.
Trait Implementations§
Source§impl Clone for StateLifecycle
impl Clone for StateLifecycle
impl Copy for StateLifecycle
Source§impl Debug for StateLifecycle
impl Debug for StateLifecycle
impl Eq for StateLifecycle
Source§impl PartialEq for StateLifecycle
impl PartialEq for StateLifecycle
impl StructuralPartialEq for StateLifecycle
Auto Trait Implementations§
impl Forget for StateLifecycle
impl Freeze for StateLifecycle
impl Move for StateLifecycle
impl RefUnwindSafe for StateLifecycle
impl Send for StateLifecycle
impl Sync for StateLifecycle
impl Unpin for StateLifecycle
impl UnsafeUnpin for StateLifecycle
impl UnwindSafe for StateLifecycle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.