[][src]Enum laminar::ErrorKind

pub enum ErrorKind {
    FragmentError(FragmentErrorKind),
    PacketError(PacketErrorKind),
    IOError(Error),
    ReceivedDataToShort,
    ProtocolVersionMismatch,
    SendError(SendError<SocketEvent>),
    CouldNotReadHeader(String),
}

Enum with all possible network errors that could occur.

Variants

FragmentError(FragmentErrorKind)

Error relating to receiving or parsing a fragment

PacketError(PacketErrorKind)

Error relating to receiving or parsing a packet

IOError(Error)

Wrapper around a std io::Error

ReceivedDataToShort

Did not receive enough data

ProtocolVersionMismatch

Protocol versions did not match

SendError(SendError<SocketEvent>)

Could not send on SendChannel.

CouldNotReadHeader(String)

Expected header but could not be read from buffer.

Trait Implementations

impl From<Error> for ErrorKind[src]

impl From<SendError<SocketEvent>> for ErrorKind[src]

impl Display for ErrorKind[src]

impl Debug for ErrorKind[src]

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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<T> Borrow for T where
    T: ?Sized
[src]

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

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