pub struct TurnResult<Out> {
pub output: Out,
pub stopped: bool,
}Expand description
Result of a single engine turn (CoreEngine::run_once).
Always carries the thinker’s output. stopped is true
when a processor returned Signal::Stop (or when no processors are
registered and the single turn is treated as complete).
Fields§
§output: OutOutput produced by the thinker for this turn.
stopped: boolWhether the engine should terminate after this turn.
Trait Implementations§
Source§impl<Out: Clone> Clone for TurnResult<Out>
impl<Out: Clone> Clone for TurnResult<Out>
Source§fn clone(&self) -> TurnResult<Out>
fn clone(&self) -> TurnResult<Out>
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 moreAuto Trait Implementations§
impl<Out> Freeze for TurnResult<Out>where
Out: Freeze,
impl<Out> RefUnwindSafe for TurnResult<Out>where
Out: RefUnwindSafe,
impl<Out> Send for TurnResult<Out>where
Out: Send,
impl<Out> Sync for TurnResult<Out>where
Out: Sync,
impl<Out> Unpin for TurnResult<Out>where
Out: Unpin,
impl<Out> UnsafeUnpin for TurnResult<Out>where
Out: UnsafeUnpin,
impl<Out> UnwindSafe for TurnResult<Out>where
Out: UnwindSafe,
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