[][src]Enum kayrx::jrpc::raw::client::RawClientError

pub enum RawClientError<E> {
    Inner(E),
    RequestError(Error),
    DuplicateSubscriptionId,
    SubscriptionIdParseError,
    UnknownRequestId,
    NullRequestId,
    UnknownSubscriptionId,
}

Error that can happen during a request.

Variants

Inner(E)

Error in the raw client.

RequestError(Error)

RawServer returned an error for our request.

DuplicateSubscriptionId

RawServer has sent back a subscription ID that has already been used by an earlier subscription.

SubscriptionIdParseError

Failed to parse subscription ID send by server.

On a successful subscription, the server is expected to send back a single number or string representing the ID of the subscription. This error happens if the server returns something else than a number or string.

UnknownRequestId

RawServer has sent back a response containing an unknown request ID.

NullRequestId

RawServer has sent back a response containing a null request ID.

UnknownSubscriptionId

RawServer has sent back a notification using an unknown subscription ID.

Trait Implementations

impl<E: Debug> Debug for RawClientError<E>[src]

impl<E> Display for RawClientError<E> where
    E: Display
[src]

impl<E> Error for RawClientError<E> where
    E: Error + 'static, 
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for RawClientError<E> where
    E: RefUnwindSafe

impl<E> Send for RawClientError<E> where
    E: Send

impl<E> Sync for RawClientError<E> where
    E: Sync

impl<E> Unpin for RawClientError<E> where
    E: Unpin

impl<E> UnwindSafe for RawClientError<E> where
    E: UnwindSafe

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,