pub struct WatchManagerActor { /* private fields */ }Expand description
Native coerce actor wrapping WatchManager.
Implementations§
Trait Implementations§
Source§impl Actor for WatchManagerActor
impl Actor for WatchManagerActor
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 started<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn started<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn stopped<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_ctx: &'life1 mut ActorContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Called once the Actor has stopped
Source§fn on_child_stopped<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_id: &'life1 Arc<str>,
_ctx: &'life2 mut ActorContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn on_child_stopped<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_id: &'life1 Arc<str>,
_ctx: &'life2 mut ActorContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: '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 Default for WatchManagerActor
impl Default for WatchManagerActor
Source§impl Handler<GetWatchedCount> for WatchManagerActor
impl Handler<GetWatchedCount> for WatchManagerActor
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_msg: GetWatchedCount,
_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<OnTerminated> for WatchManagerActor
impl Handler<OnTerminated> for WatchManagerActor
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: OnTerminated,
_ctx: &'life1 mut ActorContext,
) -> Pin<Box<dyn Future<Output = Vec<WatchNotification>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Handler<RemoteUnwatch> for WatchManagerActor
impl Handler<RemoteUnwatch> for WatchManagerActor
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: RemoteUnwatch,
_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<RemoteWatch> for WatchManagerActor
impl Handler<RemoteWatch> for WatchManagerActor
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
msg: RemoteWatch,
_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 Freeze for WatchManagerActor
impl RefUnwindSafe for WatchManagerActor
impl Send for WatchManagerActor
impl Sync for WatchManagerActor
impl Unpin for WatchManagerActor
impl UnsafeUnpin for WatchManagerActor
impl UnwindSafe for WatchManagerActor
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