Enum actix_redis::RespError[][src]

pub enum RespError {
    Internal(String),
    IO(Error),
    RESP(StringOption<RespValue>),
    Remote(String),
    EndOfStream,
    Unexpected(String),
}

Variants

A non-specific internal error that prevented an operation from completing

An IO error occurred

A RESP parsing/serialising error occurred

A remote error

End of stream - a connection is broken, or could not be established in the first place

An unexpected error. In this context "unexpected" means "unexpected because we check ahead of time", it used to maintain the type signature of chains of futures; but it occurring at runtime should be considered a catastrophic failure.

If any error is propagated this way that needs to be handled, then it should be made into a proper option.

Trait Implementations

impl Error for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl<T> From<SendError<T>> for Error where
    T: 'static + Send
[src]

Performs the conversion.

impl From<Canceled> for Error
[src]

Performs the conversion.

impl StreamHandler<RespValue, RespError> for RedisActor
[src]

Method is called when stream emits error. Read more

Method is called for every message received by this Actor

Method is called when stream get polled first time.

Method is called when stream finishes. Read more

This method register stream to an actor context and allows to handle Stream in similar way as normal actor messages. Read more

impl From<Error> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error