Struct compressed_log::client::LogClientAct
source · pub struct LogClientAct { /* private fields */ }
Trait Implementations§
source§impl Actor for LogClientAct
impl Actor for LogClientAct
§type Context = Context<LogClientAct>
type Context = Context<LogClientAct>
Actor execution context type
source§fn started(&mut self, ctx: &mut Context<Self>)
fn started(&mut self, ctx: &mut Context<Self>)
Method is called when actor get polled first time.
source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Method is called after an actor is in
Actor::Stopping
state. There
could be several reasons for stopping. Context::stop
get called
by the actor itself. All addresses to current actor get dropped and
no more evented objects left in the context. Read moresource§fn stopped(&mut self, ctx: &mut Self::Context)
fn stopped(&mut self, ctx: &mut Self::Context)
Method is called after an actor is stopped, it can be used to perform
any needed cleanup work or spawning more actors. This is final state,
after this call actor get dropped. Read more
source§fn start(self) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
fn start(self) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
Start new asynchronous actor, returns address of newly created actor. Read more
source§impl Default for LogClientAct
impl Default for LogClientAct
source§fn default() -> LogClientAct
fn default() -> LogClientAct
Returns the “default value” for a type. Read more
source§impl Handler<Connect> for LogClientAct
impl Handler<Connect> for LogClientAct
source§impl Handler<LogChunk> for LogClientAct
impl Handler<LogChunk> for LogClientAct
Handle sending a chunk of compressed log data
source§impl StreamHandler<Message, ProtocolError> for LogClientAct
impl StreamHandler<Message, ProtocolError> for LogClientAct
Handle server websocket messages
source§fn handle(&mut self, msg: Message, _ctx: &mut Context<Self>)
fn handle(&mut self, msg: Message, _ctx: &mut Context<Self>)
Method is called for every message received by this Actor
source§fn started(&mut self, _ctx: &mut Context<Self>)
fn started(&mut self, _ctx: &mut Context<Self>)
Method is called when stream get polled first time.
source§impl Supervised for LogClientAct
impl Supervised for LogClientAct
source§fn restarting(&mut self, _ctx: &mut Context<LogClientAct>)
fn restarting(&mut self, _ctx: &mut Context<LogClientAct>)
Method called when supervisor restarting failed actor