Enum ockam_transport_tcp::TcpError[][src]

pub enum TcpError {
    SendBadMessage,
    RecvBadMessage,
    BindFailed,
    ConnectionDrop,
    AlreadyConnected,
    PeerNotFound,
    PeerBusy,
    UnknownRoute,
    InvalidAddress,
    GenericIo,
}

A TCP connection worker specific error type

Variants

SendBadMessage

Failed to send a malformed message

RecvBadMessage

Failed to receive a malformed message

BindFailed

Failed to bind to the desired socket

ConnectionDrop

Connection was dropped unexpectedly

AlreadyConnected

Connection was already established

PeerNotFound

Connection peer was not found

PeerBusy

Peer requected the incoming connection

UnknownRoute

Failed to route to an unknown recipient

InvalidAddress

Failed to parse the socket address

GenericIo

A generic I/O failure

Implementations

impl TcpError[src]

pub const DOMAIN_CODE: u32[src]

Integer code associated with the error domain.

pub const DOMAIN_NAME: &'static str[src]

Error domain

Trait Implementations

impl Clone for TcpError[src]

impl Copy for TcpError[src]

impl Debug for TcpError[src]

impl From<Error> for TcpError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,