pub struct CeremonyState { /* private fields */ }Implementations§
Source§impl CeremonyState
impl CeremonyState
pub fn new(id: StateId, kind: CeremonyStateKind) -> Self
pub fn initial(id: StateId) -> Self
pub fn intermediate(id: StateId) -> Self
pub fn terminal(id: StateId) -> Self
pub fn id(&self) -> &StateId
pub fn kind(&self) -> CeremonyStateKind
pub fn with_execution(self, execution: StateExecution) -> Self
pub fn execution(&self) -> StateExecution
pub fn with_repeat_policy(self, repeat: StateRepeatPolicy) -> Self
pub fn repeat_policy(&self) -> Option<&StateRepeatPolicy>
Sourcepub fn with_annotations(self, annotations: Attributes) -> Self
pub fn with_annotations(self, annotations: Attributes) -> Self
Opaque authoring and rendering metadata. The state machine never interprets these values when deciding or folding commands.
pub fn annotations(&self) -> &Attributes
pub fn is_initial(&self) -> bool
pub fn is_terminal(&self) -> bool
Trait Implementations§
Source§impl Clone for CeremonyState
impl Clone for CeremonyState
Source§impl Debug for CeremonyState
impl Debug for CeremonyState
Source§impl<'de> Deserialize<'de> for CeremonyState
impl<'de> Deserialize<'de> for CeremonyState
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
impl Eq for CeremonyState
Source§impl PartialEq for CeremonyState
impl PartialEq for CeremonyState
Source§impl Serialize for CeremonyState
impl Serialize for CeremonyState
impl StructuralPartialEq for CeremonyState
Auto Trait Implementations§
impl Freeze for CeremonyState
impl RefUnwindSafe for CeremonyState
impl Send for CeremonyState
impl Sync for CeremonyState
impl Unpin for CeremonyState
impl UnsafeUnpin for CeremonyState
impl UnwindSafe for CeremonyState
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