pub enum NextState {
Error(Option<String>),
NamedState(String),
}Expand description
Represents the next state or an error condition.
Variants§
Error(Option<String>)
Transition to an error state with an optional message.
NamedState(String)
Transition to a named state (e.g., ‘Start’, ‘EOF’).
Trait Implementations§
impl StructuralPartialEq for NextState
Auto Trait Implementations§
impl Freeze for NextState
impl RefUnwindSafe for NextState
impl Send for NextState
impl Sync for NextState
impl Unpin for NextState
impl UnwindSafe for NextState
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