Struct tonari_actor::timed::TimedContext
source · pub struct TimedContext<M> {
pub system_handle: SystemHandle,
pub myself: Recipient<TimedMessage<M>>,
}
Fields§
§system_handle: SystemHandle
§myself: Recipient<TimedMessage<M>>
Implementations§
source§impl<M> TimedContext<M>
impl<M> TimedContext<M>
sourcepub fn subscribe<E: Event + Into<M>>(&self)where
M: 'static,
pub fn subscribe<E: Event + Into<M>>(&self)where
M: 'static,
Subscribe current actor to event of type E
. Events will be delivered as instant messages.
See crate::Context::subscribe()
.
Auto Trait Implementations§
impl<M> Freeze for TimedContext<M>
impl<M> !RefUnwindSafe for TimedContext<M>
impl<M> Send for TimedContext<M>
impl<M> Sync for TimedContext<M>
impl<M> Unpin for TimedContext<M>
impl<M> !UnwindSafe for TimedContext<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