Enum docuglot::TranslationError[][src]

pub enum TranslationError {
    Transmission(WriteFault<Message>),
    Reception(ConsumeServerMessageError),
    CreateClient(CreateClientError),
    Wait(WaitFault),
    NoSupply(WithdrawnSupplyFault),
    NoDemand(ProduceFailure<WithdrawnDemandFault>),
    Serialize(Error),
    Read(ReadFault<Message>),
    ProcessResponse(ProcessResponseError),
    InvalidState(State),
}

An error during translation.

Variants

Transmission(WriteFault<Message>)

Failure while transmitting a client message.

Reception(ConsumeServerMessageError)

Failure while receiving a server message.

CreateClient(CreateClientError)

Failure while creating client.

Wait(WaitFault)

Failure while waiting for process.

Attempted to consume on channel with no supply.

Attempted to produce on channel with dropped Consumer.

Serialize(Error)

An error serializing a message.

Read(ReadFault<Message>)

An error reading the message.

ProcessResponse(ProcessResponseError)

A JSON-RPC error.

InvalidState(State)

An invalid state.

Trait Implementations

impl Debug for TranslationError[src]

impl Display for TranslationError[src]

impl Error for TranslationError[src]

impl From<Error> for TranslationError[src]

impl From<ProduceFailure<WithdrawnDemandFault>> for TranslationError[src]

impl From<ReadFault<Message>> for TranslationError[src]

impl From<WaitFault> for TranslationError[src]

impl From<WithdrawnSupplyFault> for TranslationError[src]

impl From<WriteFault<Message>> for TranslationError[src]

impl TryFrom<ConsumeFailure<TranslationError>> for TranslationError[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

impl<P, C> AssembleInto<C> for P where
    C: AssembleFrom<P>, 
[src]

type Error = <C as AssembleFrom<P>>::Error

Describes an error with the parts. Read more

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

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

impl<P, C> DisassembleInto<P> for C where
    P: DisassembleFrom<C>, 
[src]

type Error = <P as DisassembleFrom<C>>::Error

Describes an error that prevents disassembly.

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.