Enum clarity_repl::clarity::types::serialization::NetError[][src]

pub enum NetError {
    SerializeError(String),
    ReadError(Error),
    DeserializeError(String),
    WriteError(Error),
    UnderflowError(String),
    OverflowError(String),
    WrongProtocolFamily,
    ArrayTooLong,
    RecvTimeout,
    SigningError(String),
    VerifyingError(String),
    TemporarilyDrained,
    PermanentlyDrained,
    FilesystemError,
    SocketMutexPoisoned,
    SocketNotConnectedToPeer,
    ConnectionBroken,
    ConnectionError,
    OutboxOverflow,
    InboxOverflow,
    SendError(String),
    RecvError(String),
    InvalidMessage,
    InvalidHandle,
    InvalidHandshake,
    StaleNeighbor,
    NoSuchNeighbor,
    BindError,
    PollError,
    AcceptError,
    RegisterError,
    SocketError,
    NotConnected,
    PeerNotConnected,
    TooManyPeers,
    AlreadyConnected(usize),
    InProgress,
    Blacklisted,
    NoDataUrl,
    PeerThrottled,
    LookupError(String),
}

Variants

SerializeError(String)

Failed to encode

ReadError(Error)

Failed to read

DeserializeError(String)

Failed to decode

WriteError(Error)

Filaed to write

UnderflowError(String)

Underflow – not enough bytes to form the message

OverflowError(String)

Overflow – message too big

WrongProtocolFamily

Wrong protocol family

ArrayTooLong

Array is too big

RecvTimeout

Receive timed out

SigningError(String)

Error signing a message

VerifyingError(String)

Error verifying a message

TemporarilyDrained

Read stream is drained. Try again

PermanentlyDrained

Read stream has reached EOF (socket closed, end-of-file reached, etc.)

FilesystemError

Failed to read from the FS

SocketMutexPoisoned

Socket mutex was poisoned

SocketNotConnectedToPeer

Socket not instantiated

ConnectionBroken

Not connected to peer

ConnectionError

Connection could not be (re-)established

OutboxOverflow

Too many outgoing messages

InboxOverflow

Too many incoming messages

SendError(String)

Send error

RecvError(String)

Recv error

InvalidMessage

Invalid message

InvalidHandle

Invalid network handle

InvalidHandshake

Invalid handshake

StaleNeighbor

Stale neighbor

NoSuchNeighbor

No such neighbor

BindError

Failed to bind

PollError

Failed to poll

AcceptError

Failed to accept

RegisterError

Failed to register socket with poller

SocketError

Failed to query socket metadata

NotConnected

server is not bound to a socket

PeerNotConnected

Remote peer is not connected

TooManyPeers

Too many peers

AlreadyConnected(usize)

Peer already connected

InProgress

Message already in progress

Blacklisted

Peer is blacklisted

NoDataUrl

Data URL is not known

PeerThrottled

Peer is transmitting too fast

LookupError(String)

Error resolving a DNS name

Auto Trait Implementations

impl !RefUnwindSafe for NetError

impl Send for NetError

impl Sync for NetError

impl Unpin for NetError

impl !UnwindSafe for NetError

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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