pub struct Context<'a, 'b, 'c, M: Message> { /* private fields */ }Implementations§
Source§impl<'a, 'b, 'c, M: Message> Context<'a, 'b, 'c, M>
impl<'a, 'b, 'c, M: Message> Context<'a, 'b, 'c, M>
pub fn new( ctx: &'a mut ActorContext<'b, SysEvent<M>>, timers: &'c mut HashMap<(ActorId, String), u64>, local_events: &'c mut Vec<LocalEvent<M>>, local_mailbox: &'c mut Vec<M>, sent_message_count: &'c mut u64, clock_skew: f64, ) -> Self
pub fn time(&mut self) -> f64
pub fn send(&mut self, msg: M, dest: &str)
pub fn send_local(&mut self, msg: M)
pub fn set_timer(&mut self, name: &str, delay: f64)
pub fn cancel_timer(&mut self, name: &str)
pub fn rand(&mut self) -> f64
Auto Trait Implementations§
impl<'a, 'b, 'c, M> Freeze for Context<'a, 'b, 'c, M>
impl<'a, 'b, 'c, M> RefUnwindSafe for Context<'a, 'b, 'c, M>where
M: RefUnwindSafe,
impl<'a, 'b, 'c, M> Send for Context<'a, 'b, 'c, M>where
M: Send,
impl<'a, 'b, 'c, M> Sync for Context<'a, 'b, 'c, M>where
M: Sync,
impl<'a, 'b, 'c, M> Unpin for Context<'a, 'b, 'c, M>
impl<'a, 'b, 'c, M> !UnwindSafe for Context<'a, 'b, 'c, M>
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