Struct actix_redis::RedisActor [−][src]
pub struct RedisActor { /* fields omitted */ }
Expand description
Redis communication actor
Implementations
Start new Supervisor
with RedisActor
.
Trait Implementations
type Context = Context<Self>
type Context = Context<Self>
Actor execution context type
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.
Called for every message emitted by the stream.
fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandle where
Self: StreamHandler<<S as Stream>::Item>,
S: Stream + 'static,
Self::Context: AsyncContext<Self>,
fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandle where
Self: StreamHandler<<S as Stream>::Item>,
S: Stream + 'static,
Self::Context: AsyncContext<Self>,
Register a Stream to the actor context.
Called when the supervisor restarts a failed actor.