pub struct RedisActor { /* private fields */ }
Expand description
Redis communication actor.
Implementations§
Source§impl RedisActor
impl RedisActor
Trait Implementations§
Source§impl Actor for RedisActor
impl Actor for RedisActor
Source§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.
Source§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 moreSource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
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§fn handle(&mut self, msg: Result<RespValue, RespError>, ctx: &mut Self::Context)
fn handle(&mut self, msg: Result<RespValue, RespError>, ctx: &mut Self::Context)
Called for every message emitted by the stream.
Source§fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandlewhere
S: Stream + 'static,
Self: StreamHandler<<S as Stream>::Item>,
Self::Context: AsyncContext<Self>,
fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandlewhere
S: Stream + 'static,
Self: StreamHandler<<S as Stream>::Item>,
Self::Context: AsyncContext<Self>,
Register a Stream to the actor context.
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.
Auto Trait Implementations§
impl Freeze for RedisActor
impl !RefUnwindSafe for RedisActor
impl !Send for RedisActor
impl !Sync for RedisActor
impl Unpin for RedisActor
impl !UnwindSafe for RedisActor
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