Struct actix_redis::RedisActor
source · pub struct RedisActor { /* private fields */ }
Expand description
Redis communication actor.
Implementations§
source§impl RedisActor
impl RedisActor
sourcepub fn start<S: Into<String>>(addr: S) -> Addr<RedisActor>
pub fn start<S: Into<String>>(addr: S) -> Addr<RedisActor>
Start new Supervisor
with RedisActor
.
Trait Implementations§
source§impl Actor for RedisActor
impl Actor for RedisActor
§type Context = Context<RedisActor>
type Context = Context<RedisActor>
Actor execution context type
source§fn started(&mut self, ctx: &mut Context<Self>)
fn started(&mut self, ctx: &mut Context<Self>)
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_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
F: 'static + FnOnce(&mut Context<Self>) -> Self + Send,
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>where
Self: Actor<Context = Context<Self>>,
F: 'static + FnOnce(&mut Context<Self>) -> Self + Send,
Start new actor in arbiter’s thread.
source§impl Handler<Command> for RedisActor
impl Handler<Command> for RedisActor
source§impl StreamHandler<Result<RespValue, Error>> for RedisActor
impl StreamHandler<Result<RespValue, Error>> for RedisActor
source§impl Supervised for RedisActor
impl Supervised for RedisActor
source§fn restarting(&mut self, _: &mut Self::Context)
fn restarting(&mut self, _: &mut Self::Context)
Called when the supervisor restarts a failed actor.