pub struct LifecycleBlock {
pub states: Vec<LifecycleState>,
pub transitions: Vec<LifecycleTransition>,
}Expand description
Lifecycle block: states + event-driven transitions.
Fields§
§states: Vec<LifecycleState>The states (exactly one should have initial: true).
transitions: Vec<LifecycleTransition>The transitions.
Trait Implementations§
Source§impl Clone for LifecycleBlock
impl Clone for LifecycleBlock
Source§fn clone(&self) -> LifecycleBlock
fn clone(&self) -> LifecycleBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleBlock
impl Debug for LifecycleBlock
Source§impl<'de> Deserialize<'de> for LifecycleBlock
impl<'de> Deserialize<'de> for LifecycleBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LifecycleBlock
impl PartialEq for LifecycleBlock
Source§impl Serialize for LifecycleBlock
impl Serialize for LifecycleBlock
impl StructuralPartialEq for LifecycleBlock
Auto Trait Implementations§
impl Freeze for LifecycleBlock
impl RefUnwindSafe for LifecycleBlock
impl Send for LifecycleBlock
impl Sync for LifecycleBlock
impl Unpin for LifecycleBlock
impl UnsafeUnpin for LifecycleBlock
impl UnwindSafe for LifecycleBlock
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