pub enum RunnerPhase {
Idle,
Running,
AwaitingOption,
Done,
}Expand description
Where the Runner is in its start / next_event / Runner::select_option protocol.
Variants§
Idle
No dialogue running; call Runner::start.
Running
Advancing lines and statements; call Runner::next_event.
AwaitingOption
The last event was DialogueEvent::Options; call Runner::select_option before
Runner::next_event.
Done
The current node finished; the stream is finished until the next Runner::start.
Trait Implementations§
Source§impl Clone for RunnerPhase
impl Clone for RunnerPhase
Source§fn clone(&self) -> RunnerPhase
fn clone(&self) -> RunnerPhase
Returns a duplicate of the value. Read more
1.0.0 · 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 RunnerPhase
impl Debug for RunnerPhase
Source§impl PartialEq for RunnerPhase
impl PartialEq for RunnerPhase
impl Copy for RunnerPhase
impl Eq for RunnerPhase
impl StructuralPartialEq for RunnerPhase
Auto Trait Implementations§
impl Freeze for RunnerPhase
impl RefUnwindSafe for RunnerPhase
impl Send for RunnerPhase
impl Sync for RunnerPhase
impl Unpin for RunnerPhase
impl UnsafeUnpin for RunnerPhase
impl UnwindSafe for RunnerPhase
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
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§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.