[][src]Enum fizyr_rpc::error::ReadMessageError

pub enum ReadMessageError {
    Io(Error),
    MessageTooShort(MessageTooShort),
    InvalidMessageType(InvalidMessageType),
    PayloadTooLarge(PayloadTooLarge),
}

An error occurred while reading a message.

Variants

Io(Error)

An I/O error occurred.

MessageTooShort(MessageTooShort)

The received message is too short to be valid.

InvalidMessageType(InvalidMessageType)

The received message has an invalid type.

PayloadTooLarge(PayloadTooLarge)

The payload of the message is too large to receive.

Implementations

impl ReadMessageError[src]

pub fn is_connection_aborted(&self) -> bool[src]

Check if the error is an I/O error indicating that the connection was aborted by the remote peer.

Trait Implementations

impl Debug for ReadMessageError[src]

impl Display for ReadMessageError[src]

impl Error for ReadMessageError[src]

impl From<Error> for ReadMessageError[src]

impl From<InvalidMessageType> for ReadMessageError[src]

impl From<MessageTooShort> for ReadMessageError[src]

impl From<PayloadTooLarge> for ReadMessageError[src]

impl From<ReadMessageError> for NextMessageError[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.