pub struct Master { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl Actor for Master
impl Actor for Master
source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping
state. Read more§fn start(self) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
fn start(self) -> Addr<Self>where Self: Actor<Context = Context<Self>>,
Start a new asynchronous actor, returning its address. Read more
§fn start_default() -> Addr<Self>where
Self: Actor<Context = Context<Self>> + Default,
fn start_default() -> Addr<Self>where Self: Actor<Context = Context<Self>> + Default,
Construct and start a new asynchronous actor, returning its
address. Read more
§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>where Self: Actor<Context = Context<Self>>, F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Start new actor in arbiter’s thread.
source§impl Handler<AddVisitor> for Master
impl Handler<AddVisitor> for Master
§type Result = MessageResult<AddVisitor>
type Result = MessageResult<AddVisitor>
The type of value that this handler will return. Read more
source§fn handle(&mut self, m: AddVisitor, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, m: AddVisitor, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<GetInternalData> for Master
impl Handler<GetInternalData> for Master
§type Result = MessageResult<GetInternalData>
type Result = MessageResult<GetInternalData>
The type of value that this handler will return. Read more
source§fn handle(
&mut self,
_m: GetInternalData,
ctx: &mut Self::Context
) -> Self::Result
fn handle( &mut self, _m: GetInternalData, ctx: &mut Self::Context ) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<RemoveCaptcha> for Master
impl Handler<RemoveCaptcha> for Master
§type Result = MessageResult<RemoveCaptcha>
type Result = MessageResult<RemoveCaptcha>
The type of value that this handler will return. Read more
source§fn handle(&mut self, m: RemoveCaptcha, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, m: RemoveCaptcha, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<SetInternalData> for Master
impl Handler<SetInternalData> for Master
§type Result = MessageResult<SetInternalData>
type Result = MessageResult<SetInternalData>
The type of value that this handler will return. Read more
source§fn handle(
&mut self,
m: SetInternalData,
ctx: &mut Self::Context
) -> Self::Result
fn handle( &mut self, m: SetInternalData, ctx: &mut Self::Context ) -> Self::Result
This method is called for every message received by this actor.
impl Master for Master
Auto Trait Implementations§
impl !RefUnwindSafe for Master
impl Send for Master
impl Sync for Master
impl Unpin for Master
impl !UnwindSafe for Master
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