pub struct ActorContext<D> { /* private fields */ }Expand description
§ActorContext
Provides an actor with access to the system and to metadata about itself
Implementations§
Source§impl<D: Delegate> ActorContext<D>
impl<D: Delegate> ActorContext<D>
Sourcepub fn get_id(&self) -> u64
pub fn get_id(&self) -> u64
§ActorContext::get_id
Returns the id of the actor
Sourcepub fn system(&self) -> &Fluxion<D>
pub fn system(&self) -> &Fluxion<D>
§ActorContext::system
Returns the Fluxion instance that this actor is running on
Auto Trait Implementations§
impl<D> Freeze for ActorContext<D>
impl<D> !RefUnwindSafe for ActorContext<D>
impl<D> Send for ActorContext<D>
impl<D> Sync for ActorContext<D>
impl<D> Unpin for ActorContext<D>
impl<D> !UnwindSafe for ActorContext<D>
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