pub enum StoryStatus {
Active,
WaitingForChoice,
Done,
Ended,
}Expand description
The current execution status of a story.
Variants§
Active
Ready to step.
WaitingForChoice
Waiting for a choice selection via Story::choose.
Done
Hit a done opcode — can still resume after output is consumed.
Ended
Hit an end opcode — permanently finished.
Trait Implementations§
Source§impl Clone for StoryStatus
impl Clone for StoryStatus
Source§fn clone(&self) -> StoryStatus
fn clone(&self) -> StoryStatus
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 moreimpl Copy for StoryStatus
Source§impl Debug for StoryStatus
impl Debug for StoryStatus
impl Eq for StoryStatus
Source§impl PartialEq for StoryStatus
impl PartialEq for StoryStatus
Source§fn eq(&self, other: &StoryStatus) -> bool
fn eq(&self, other: &StoryStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StoryStatus
Auto Trait Implementations§
impl Freeze for StoryStatus
impl RefUnwindSafe for StoryStatus
impl Send for StoryStatus
impl Sync for StoryStatus
impl Unpin for StoryStatus
impl UnsafeUnpin for StoryStatus
impl UnwindSafe for StoryStatus
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