pub enum ScriptedResponse {
Turn(SimTurn),
Exhausted,
}Expand description
A turn yielded by Script::next_turn. Includes whether the script
has been exhausted (so callers can pick error semantics).
Variants§
Turn(SimTurn)
Exhausted
Script exhausted and on_exhausted = Error. Callers should map
this to a 500 with a descriptive message.
Trait Implementations§
Source§impl Clone for ScriptedResponse
impl Clone for ScriptedResponse
Source§fn clone(&self) -> ScriptedResponse
fn clone(&self) -> ScriptedResponse
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 ScriptedResponse
impl Debug for ScriptedResponse
Source§impl PartialEq for ScriptedResponse
impl PartialEq for ScriptedResponse
Source§fn eq(&self, other: &ScriptedResponse) -> bool
fn eq(&self, other: &ScriptedResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScriptedResponse
Auto Trait Implementations§
impl Freeze for ScriptedResponse
impl RefUnwindSafe for ScriptedResponse
impl Send for ScriptedResponse
impl Sync for ScriptedResponse
impl Unpin for ScriptedResponse
impl UnsafeUnpin for ScriptedResponse
impl UnwindSafe for ScriptedResponse
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