pub struct SimContext<T> { /* private fields */ }Expand description
The Simulation Context is the argument used to resume the coroutine. It can be used to retrieve the simulation time and the effect that caused the process’ wake up.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for SimContext<T>
impl<T: Clone> Clone for SimContext<T>
Source§fn clone(&self) -> SimContext<T>
fn clone(&self) -> SimContext<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for SimContext<T>where
T: Freeze,
impl<T> RefUnwindSafe for SimContext<T>where
T: RefUnwindSafe,
impl<T> Send for SimContext<T>where
T: Send,
impl<T> Sync for SimContext<T>where
T: Sync,
impl<T> Unpin for SimContext<T>where
T: Unpin,
impl<T> UnwindSafe for SimContext<T>where
T: 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