[][src]Enum docuglot::TranslationError

pub enum TranslationError {
    Transmission(ProduceFailure<WriteFault<Message>>),
    Reception(ConsumeServerMessageError),
    CreateClient(CreateClientError),
    Wait(WaitFault),
    InvalidState(Box<Event>, State),
    NoSupply(WithdrawnSupply),
    NoDemand(ProduceFailure<WithdrawnDemand>),
}

An error during translation.

Variants

Transmission(ProduceFailure<WriteFault<Message>>)

Failure while transmitting a client message.

Failure while receiving a server message.

CreateClient(CreateClientError)

Failure while creating client.

Wait(WaitFault)

Failure while waiting for process.

InvalidState(Box<Event>, State)

Attempted to process an event in an invalid state.

NoSupply(WithdrawnSupply)

Attempted to consume on channel with no supply.

Attempted to produce on channel with dropped Consumer.

Trait Implementations

impl Debug for TranslationError[src]

impl Display for TranslationError[src]

impl Error for TranslationError[src]

impl From<ConsumeServerMessageError> for TranslationError[src]

impl From<CreateClientError> for TranslationError[src]

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

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

impl From<WaitFault> for TranslationError[src]

impl From<WithdrawnSupply> for TranslationError[src]

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.