[−][src]Struct actix_redis::RedisActor
Redis comminucation actor
Implementations
impl RedisActor
[src]
pub fn start<S: Into<String>>(addr: S) -> Addr<RedisActor>
[src]
Start new Supervisor
with RedisActor
.
Trait Implementations
impl Actor for RedisActor
[src]
type Context = Context<Self>
Actor execution context type
fn started(&mut self, ctx: &mut Context<Self>)
[src]
pub fn stopping(&mut self, ctx: &mut Self::Context) -> Running
pub fn stopped(&mut self, ctx: &mut Self::Context)
pub fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
Self: Actor<Context = Context<Self>>,
pub fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default,
Self: Actor<Context = Context<Self>> + Default,
pub fn start_in_arbiter<F>(arb: &Arbiter, f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,
pub fn create<F>(f: F) -> Addr<Self> where
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
Self: Actor<Context = Context<Self>>,
F: FnOnce(&mut Context<Self>) -> Self,
impl Handler<Command> for RedisActor
[src]
type Result = ResponseFuture<Result<RespValue, Error>>
The type of value that this handler will return. Read more
fn handle(&mut self, msg: Command, _: &mut Self::Context) -> Self::Result
[src]
impl StreamHandler<Result<RespValue, Error>> for RedisActor
[src]
fn handle(&mut self, msg: Result<RespValue, RespError>, ctx: &mut Self::Context)
[src]
pub fn started(&mut self, ctx: &mut Self::Context)
pub fn finished(&mut self, ctx: &mut Self::Context)
pub fn add_stream<S>(fut: S, ctx: &mut Self::Context) -> SpawnHandle where
S: Stream<Item = I> + 'static,
I: 'static,
Self::Context: AsyncContext<Self>,
S: Stream<Item = I> + 'static,
I: 'static,
Self::Context: AsyncContext<Self>,
impl Supervised for RedisActor
[src]
fn restarting(&mut self, _: &mut Self::Context)
[src]
impl WriteHandler<Error> for RedisActor
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RedisActor
[src]
impl !Send for RedisActor
[src]
impl !Sync for RedisActor
[src]
impl Unpin for RedisActor
[src]
impl !UnwindSafe for RedisActor
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,