[][src]Enum nng::Error

pub enum Error {
    Interrupted,
    OutOfMemory,
    InvalidInput,
    Busy,
    TimedOut,
    ConnectionRefused,
    Closed,
    TryAgain,
    NotSupported,
    AddressInUse,
    IncorrectState,
    EntryNotFound,
    Protocol,
    DestUnreachable,
    AddressInvalid,
    PermissionDenied,
    MessageTooLarge,
    ConnectionAborted,
    ConnectionReset,
    Canceled,
    OutOfFiles,
    OutOfSpace,
    ResourceExists,
    ReadOnly,
    WriteOnly,
    Crypto,
    PeerAuth,
    NoArgument,
    Ambiguous,
    BadType,
    Internal,
    SystemErr(u32),
    TransportErr(u32),
    // some variants omitted
}

Errors potentially returned by NNG operations.

Variants

Interrupted

The operation was interrupted

OutOfMemory

Insufficient memory available to perform the operation

InvalidInput

An invalid argument was specified

Busy

The resource is busy

TimedOut

The operation timed out

ConnectionRefused

Connection refused by peer

Closed

The resource is already closed or was never opened

TryAgain

Operation would block

NotSupported

Operation is not supported by the library

AddressInUse

The address is already in use

IncorrectState

The resource is not in the appropriate state for the operation

EntryNotFound

Entry was not found

Protocol

A protocol error occurred

DestUnreachable

Remote address is unreachable

AddressInvalid

An invalid URL was specified

PermissionDenied

Did not have the required permissions to complete the operation

MessageTooLarge

The message was too large

ConnectionAborted

Connection attempt aborted

ConnectionReset

Connection reset or closed by peer

Canceled

The operation was canceled

OutOfFiles

Out of files

OutOfSpace

Insufficient persistent storage

ResourceExists

Resource already exists

ReadOnly

The specified option is read-only

WriteOnly

The specified option is write-only

Crypto

A cryptographic error occurred

PeerAuth

Authentication or authorization failure

NoArgument

The option requires an argument but it was not present

Ambiguous

Parsed option matches more than one specification

BadType

Incorrect type used for option

Internal

An internal error occurred.

SystemErr(u32)

An unknown system error occurred.

TransportErr(u32)

An unknown transport error occurred.

Trait Implementations

impl From<(Message, Error)> for Error[src]

impl From<Error> for Error[src]

impl Clone for Error[src]

impl Copy for Error[src]

impl Eq for Error[src]

impl PartialEq<Error> for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Hash for Error[src]

impl StructuralPartialEq for Error[src]

impl StructuralEq for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

impl RefUnwindSafe for Error

Blanket Implementations

impl<T> From<T> 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> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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

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

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