[][src]Enum fleetspeak::ReadError

pub enum ReadError {
    Input(Error),
    Decode(DecodeError),
    Malformed(Box<dyn Error + Send + Sync>),
    Magic(u32),
}

An error type for failures that occurred when receiving a message.

Variants

Input(Error)

An I/O error occurred when reading from the input stream.

Decode(DecodeError)

An error occurred when decoding bytes of the proto message.

Malformed(Box<dyn Error + Send + Sync>)

An error occurred because the decoded proto message was malformed.

Magic(u32)

An invalid magic number has been read from the input stream.

Methods

impl ReadError[src]

pub fn malformed<E>(err: E) -> ReadError where
    E: Into<Box<dyn Error + Send + Sync>>, 
[src]

Converts an error indicating malformed proto message to ReadError.

Trait Implementations

impl Debug for ReadError[src]

impl Display for ReadError[src]

impl Error for ReadError[src]

impl From<DecodeError> for ReadError[src]

impl From<Error> for ReadError[src]

impl From<ReadError> for Error[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.