Expand description
Fields§
§sites: BTreeMap<String, (Option<()>, Addr<Counter>)>
§gc: u64
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<AddCounter> for Master
impl Handler<AddCounter> for Master
§type Result = MessageResult<AddCounter>
type Result = MessageResult<AddCounter>
The type of value that this handler will return. Read more
source§fn handle(&mut self, m: AddCounter, _ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, m: AddCounter, _ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<AddSearchMaster> for Master
impl Handler<AddSearchMaster> for Master
§type Result = MessageResult<AddSearchMaster>
type Result = MessageResult<AddSearchMaster>
The type of value that this handler will return. Read more
source§fn handle(&mut self, m: AddSearchMaster, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, m: AddSearchMaster, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.
source§impl Handler<RemoveCounter> for Master
impl Handler<RemoveCounter> for Master
§type Result = MessageResult<RemoveCounter>
type Result = MessageResult<RemoveCounter>
The type of value that this handler will return. Read more
source§fn handle(&mut self, m: RemoveCounter, ctx: &mut Self::Context) -> Self::Result
fn handle(&mut self, m: RemoveCounter, ctx: &mut Self::Context) -> Self::Result
This method is called for every message received by this actor.