pub struct PluginCenter { /* private fields */ }Implementations§
Source§impl PluginCenter
impl PluginCenter
Trait Implementations§
Source§impl Actor for PluginCenter
impl Actor for PluginCenter
Source§type Mailbox = UnboundedMailbox<PluginCenter>
type Mailbox = UnboundedMailbox<PluginCenter>
The mailbox type used for the actor. Read more
Source§fn name() -> &'static str
fn name() -> &'static str
The name of the actor, which can be useful for logging or debugging. Read more
Source§fn new_mailbox() -> (<PluginCenter as Actor>::Mailbox, <<PluginCenter as Actor>::Mailbox as Mailbox<PluginCenter>>::Receiver)
fn new_mailbox() -> (<PluginCenter as Actor>::Mailbox, <<PluginCenter as Actor>::Mailbox as Mailbox<PluginCenter>>::Receiver)
Creates a new mailbox for the actor. This sets up the message queue and receiver for the actor. Read more
Source§fn on_start(
&mut self,
actor_ref: ActorRef<Self>,
) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
fn on_start( &mut self, actor_ref: ActorRef<Self>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send
Called when the actor starts, before it processes any messages. Read more
Source§fn on_panic(
&mut self,
actor_ref: WeakActorRef<Self>,
err: PanicError,
) -> impl Future<Output = Result<Option<ActorStopReason>, Box<dyn Error + Send + Sync>>> + Send
fn on_panic( &mut self, actor_ref: WeakActorRef<Self>, err: PanicError, ) -> impl Future<Output = Result<Option<ActorStopReason>, Box<dyn Error + Send + Sync>>> + Send
Called when the actor encounters a panic or an error during “tell” message handling. Read more
Source§fn on_link_died(
&mut self,
actor_ref: WeakActorRef<Self>,
id: ActorID,
reason: ActorStopReason,
) -> impl Future<Output = Result<Option<ActorStopReason>, Box<dyn Error + Send + Sync>>> + Send
fn on_link_died( &mut self, actor_ref: WeakActorRef<Self>, id: ActorID, reason: ActorStopReason, ) -> impl Future<Output = Result<Option<ActorStopReason>, Box<dyn Error + Send + Sync>>> + Send
Called when a linked actor dies. Read more
Source§impl Clone for PluginCenter
impl Clone for PluginCenter
Source§fn clone(&self) -> PluginCenter
fn clone(&self) -> PluginCenter
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 moreSource§impl Default for PluginCenter
impl Default for PluginCenter
Source§fn default() -> PluginCenter
fn default() -> PluginCenter
Returns the “default value” for a type. Read more
Source§impl Message<ChangeStatusMsg> for PluginCenter
impl Message<ChangeStatusMsg> for PluginCenter
Source§async fn handle(
&mut self,
msg: ChangeStatusMsg,
_ctx: Context<'_, PluginCenter, <PluginCenter as Message<ChangeStatusMsg>>::Reply>,
) -> <PluginCenter as Message<ChangeStatusMsg>>::Reply
async fn handle( &mut self, msg: ChangeStatusMsg, _ctx: Context<'_, PluginCenter, <PluginCenter as Message<ChangeStatusMsg>>::Reply>, ) -> <PluginCenter as Message<ChangeStatusMsg>>::Reply
Handler for this message.
Source§impl Message<RegisterPlugin> for PluginCenter
impl Message<RegisterPlugin> for PluginCenter
Source§async fn handle(
&mut self,
msg: RegisterPlugin,
_ctx: Context<'_, PluginCenter, <PluginCenter as Message<RegisterPlugin>>::Reply>,
) -> <PluginCenter as Message<RegisterPlugin>>::Reply
async fn handle( &mut self, msg: RegisterPlugin, _ctx: Context<'_, PluginCenter, <PluginCenter as Message<RegisterPlugin>>::Reply>, ) -> <PluginCenter as Message<RegisterPlugin>>::Reply
Handler for this message.
Source§impl Message<RunHookMsg> for PluginCenter
impl Message<RunHookMsg> for PluginCenter
Source§async fn handle(
&mut self,
msg: RunHookMsg,
_ctx: Context<'_, PluginCenter, <PluginCenter as Message<RunHookMsg>>::Reply>,
) -> <PluginCenter as Message<RunHookMsg>>::Reply
async fn handle( &mut self, msg: RunHookMsg, _ctx: Context<'_, PluginCenter, <PluginCenter as Message<RunHookMsg>>::Reply>, ) -> <PluginCenter as Message<RunHookMsg>>::Reply
Handler for this message.
Auto Trait Implementations§
impl Freeze for PluginCenter
impl !RefUnwindSafe for PluginCenter
impl Send for PluginCenter
impl Sync for PluginCenter
impl Unpin for PluginCenter
impl !UnwindSafe for PluginCenter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<A, T> DynMessage<A> for T
impl<A, T> DynMessage<A> for T
Source§fn handle_dyn(
self: Box<T>,
state: &mut A,
actor_ref: ActorRef<A>,
tx: Option<Sender<Result<Box<dyn Any + Send>, SendError<Box<dyn Any + Send>, Box<dyn Any + Send>>>>>,
) -> Pin<Box<dyn Future<Output = Option<Box<dyn Debug + Send>>> + Send + '_>>
fn handle_dyn( self: Box<T>, state: &mut A, actor_ref: ActorRef<A>, tx: Option<Sender<Result<Box<dyn Any + Send>, SendError<Box<dyn Any + Send>, Box<dyn Any + Send>>>>>, ) -> Pin<Box<dyn Future<Output = Option<Box<dyn Debug + Send>>> + Send + '_>>
Handles the dyn message with the provided actor state, ref, and reply sender.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more