pub struct ActorContext { /* private fields */ }Implementations§
Source§impl ActorContext
impl ActorContext
pub fn new() -> ActorContext
pub fn current_context() -> ActorContext
pub async fn new_tracked_actor<A>( &mut self, actor: A, ) -> Result<ActorRef<A>, ActorRefErr>
pub async fn new_anon_actor<A>( &mut self, actor: A, ) -> Result<ActorRef<A>, ActorRefErr>
pub async fn new_actor<A>( &mut self, actor: A, actor_type: ActorType, ) -> Result<ActorRef<A>, ActorRefErr>
pub async fn get_tracked_actor<A>(&mut self, id: ActorId) -> Option<ActorRef<A>>
Trait Implementations§
Source§impl Clone for ActorContext
impl Clone for ActorContext
Source§fn clone(&self) -> ActorContext
fn clone(&self) -> ActorContext
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 Freeze for ActorContext
impl !RefUnwindSafe for ActorContext
impl Send for ActorContext
impl Sync for ActorContext
impl Unpin for ActorContext
impl UnsafeUnpin for ActorContext
impl !UnwindSafe for ActorContext
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