pub struct TurnCanceller { /* private fields */ }Expand description
A lightweight handle that cancels the current turn when dropped or called. Cloneable so it can be handed to the UI layer.
Implementations§
Source§impl TurnCanceller
impl TurnCanceller
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
Returns true if cancellation has been requested.
Trait Implementations§
Source§impl Clone for TurnCanceller
impl Clone for TurnCanceller
Source§fn clone(&self) -> TurnCanceller
fn clone(&self) -> TurnCanceller
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 Freeze for TurnCanceller
impl RefUnwindSafe for TurnCanceller
impl Send for TurnCanceller
impl Sync for TurnCanceller
impl Unpin for TurnCanceller
impl UnsafeUnpin for TurnCanceller
impl UnwindSafe for TurnCanceller
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