Skip to main content

WatchManagerActor

Struct WatchManagerActor 

Source
pub struct WatchManagerActor { /* private fields */ }
Expand description

Native coerce actor wrapping WatchManager.

Implementations§

Source§

impl WatchManagerActor

Source

pub fn new() -> Self

Create a new WatchManagerActor.

Trait Implementations§

Source§

impl Actor for WatchManagerActor

Source§

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,

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,

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,

Called when a supervised actor has stopped
Source§

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§

fn type_name() -> &'static str
where Self: Sized,

Returns the actor’s type name string
Source§

fn tags(&self, ctx: &ActorContext) -> ActorTags

Source§

const DEFAULT_TAGS: ActorTags = { ActorTags::None }

Default tags used when creating the actor
Source§

impl Default for WatchManagerActor

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Handler<GetWatchedCount> for WatchManagerActor

Source§

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

Source§

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

Source§

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

Source§

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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A> Handler<Describe> for A
where A: Actor,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: Describe, ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<F, A, R> Handler<Exec<F, A, R>> for A
where A: Actor, F: FnMut(&mut A) -> R + 'static + Send + Sync, R: 'static + Send + Sync,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: Exec<F, A, R>, _ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = R> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<A> Handler<Status> for A
where A: Actor,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, _message: Status, ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = ActorStatus> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<A> Handler<Stop> for A
where A: Actor,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, stop: Stop, ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<A> Handler<Terminated> for A
where A: Actor,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: Terminated, ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<A> Handler<Unwatch> for A
where A: Actor,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: Unwatch, ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<A> Handler<Watch> for A
where A: Actor,

Source§

fn handle<'life0, 'life1, 'async_trait>( &'life0 mut self, message: Watch, ctx: &'life1 mut ActorContext, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, A: 'async_trait,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<A> IntoActor for A
where A: Actor,

Source§

fn into_actor<'a, 'life0, 'async_trait, I>( self, id: Option<I>, sys: &'life0 ActorSystem, ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<A>, ActorRefErr>> + Send + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, I: 'async_trait + 'a + IntoActorId + Send, A: 'async_trait,

Source§

fn into_anon_actor<'a, 'life0, 'async_trait, I>( self, id: Option<I>, sys: &'life0 ActorSystem, ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<A>, ActorRefErr>> + Send + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, I: 'async_trait + 'a + IntoActorId + Send, A: 'async_trait,

Source§

impl<A> IntoChild for A
where A: Actor,

Source§

fn into_child<'life0, 'async_trait>( self, id: Option<Arc<str>>, ctx: &'life0 mut ActorContext, ) -> Pin<Box<dyn Future<Output = Result<LocalActorRef<A>, ActorRefErr>> + Send + 'async_trait>>
where 'life0: 'async_trait, A: 'async_trait,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more