[][src]Enum fizyr_rpc::error::SendRequestError

pub enum SendRequestError {
    Io(Error),
    PayloadTooLarge(PayloadTooLarge),
    NoFreeRequestIdFound(NoFreeRequestIdFound),
}

An error occurred while sending a request.

Variants

Io(Error)

An I/O error occurred.

PayloadTooLarge(PayloadTooLarge)

The payload of the message is too large to send.

NoFreeRequestIdFound(NoFreeRequestIdFound)

No free request ID was found.

Implementations

impl SendRequestError[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 SendRequestError[src]

impl Display for SendRequestError[src]

impl Error for SendRequestError[src]

impl From<Error> for SendRequestError[src]

impl From<NoFreeRequestIdFound> for SendRequestError[src]

impl From<PayloadTooLarge> for SendRequestError[src]

impl From<WriteMessageError> for SendRequestError[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.