Enum market::io::ReadFault[][src]

pub enum ReadFault<G: AssembleFrom<u8>> {
    Io(Error),
    Terminated,
    Assemble(<G as AssembleFrom<u8>>::Error),
}

A fault while reading a good of type G.

Variants

Io(Error)

The read threw an error.

Terminated

The thread was terminated.

Assemble(<G as AssembleFrom<u8>>::Error)

The assembly of the good from bytes threw an error.

Trait Implementations

impl<G: AssembleFrom<u8>> Debug for ReadFault<G> where
    <G as AssembleFrom<u8>>::Error: Debug
[src]

impl<G: AssembleFrom<u8>> Display for ReadFault<G> where
    <G as AssembleFrom<u8>>::Error: Display
[src]

impl<G: AssembleFrom<u8>> Error for ReadFault<G> where
    <G as AssembleFrom<u8>>::Error: Error
[src]

impl<G: AssembleFrom<u8>> From<Error> for ReadFault<G>[src]

impl<G: AssembleFrom<u8>> TryFrom<ConsumeFailure<ReadFault<G>>> for ReadFault<G>[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<G> !RefUnwindSafe for ReadFault<G>[src]

impl<G> Send for ReadFault<G> where
    <G as AssembleFrom<u8>>::Error: Send
[src]

impl<G> Sync for ReadFault<G> where
    <G as AssembleFrom<u8>>::Error: Sync
[src]

impl<G> Unpin for ReadFault<G> where
    <G as AssembleFrom<u8>>::Error: Unpin
[src]

impl<G> !UnwindSafe for ReadFault<G>[src]

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.