Trait codecs::decoding::framing::FramingError

source ·
pub trait FramingError: Error + StreamDecodingError + Send + Sync + Any {
    // Required method
    fn as_any(&self) -> &dyn Any;
}
Expand description

An error that occurred while producing byte frames from a byte stream / byte message.

It requires conformance to TcpError so that we can determine whether the error is recoverable or if trying to continue will lead to hanging up the TCP source indefinitely.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Coerces the error to a dyn Any. This is useful for downcasting the error to a concrete type

Implementations on Foreign Types§

source§

impl FramingError for Error

source§

fn as_any(&self) -> &dyn Any

source§

impl FramingError for LinesCodecError

source§

fn as_any(&self) -> &dyn Any

Implementors§