Struct coerce::actor::scheduler::ActorScheduler
source · pub struct ActorScheduler { /* private fields */ }
Implementations§
source§impl ActorScheduler
impl ActorScheduler
pub fn new( system_id: Uuid, system_name: Arc<str> ) -> LocalActorRef<ActorScheduler>
Trait Implementations§
source§impl Actor for ActorScheduler
impl Actor for ActorScheduler
source§fn started<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn started<'life0, 'life1, 'async_trait>( &'life0 mut self, _ctx: &'life1 mut ActorContext ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Called once the Actor has been started
source§fn stopped<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stopped<'life0, 'life1, 'async_trait>( &'life0 mut self, _ctx: &'life1 mut ActorContext ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Called once the Actor has stopped
source§fn new_context(
&self,
system: Option<ActorSystem>,
status: ActorStatus,
boxed_ref: BoxedActorRef
) -> ActorContext
fn new_context( &self, system: Option<ActorSystem>, status: ActorStatus, boxed_ref: BoxedActorRef ) -> ActorContext
Creates a new
ActorContext
, allowing actor implementations to override
specific parts of the ActorContext
, before the actor is started.source§fn on_child_stopped<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_id: &'life1 ActorId,
_ctx: &'life2 mut ActorContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn on_child_stopped<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, _id: &'life1 ActorId, _ctx: &'life2 mut ActorContext ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Called when a supervised actor has stopped
source§fn actor_ref(&self, ctx: &ActorContext) -> LocalActorRef<Self>where
Self: Sized,
fn actor_ref(&self, ctx: &ActorContext) -> LocalActorRef<Self>where Self: Sized,
Returns a
LocalActorRef<Self>
instance of the current actor,
automatically casting from the ActorContext
’s BoxedActorRef
.source§const DEFAULT_TAGS: ActorTags = { ActorTags::None }
const DEFAULT_TAGS: ActorTags = { ActorTags::None }
Default tags used when creating the actor
source§impl Handler<ActorCount> for ActorScheduler
impl Handler<ActorCount> for ActorScheduler
fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, __arg1: ActorCount, _ctx: &'life1 mut ActorContext ) -> Pin<Box<dyn Future<Output = usize> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§impl Handler<DeregisterActor> for ActorScheduler
impl Handler<DeregisterActor> for ActorScheduler
fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, msg: DeregisterActor, _ctx: &'life1 mut ActorContext ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§impl Handler<DescribeAll> for ActorScheduler
impl Handler<DescribeAll> for ActorScheduler
fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: DescribeAll, ctx: &'life1 mut ActorContext ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
source§impl<A> Handler<RegisterActor<A>> for ActorSchedulerwhere
A: 'static + Sync + Send + Actor,
impl<A> Handler<RegisterActor<A>> for ActorSchedulerwhere A: 'static + Sync + Send + Actor,
fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: RegisterActor<A>, _ctx: &'life1 mut ActorContext ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for ActorScheduler
impl Send for ActorScheduler
impl Sync for ActorScheduler
impl Unpin for ActorScheduler
impl !UnwindSafe for ActorScheduler
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