Enum nng::Error[][src]

pub enum Error {
Show 34 variants 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, ConnectionShutdown, Internal, SystemErr(u32), TransportErr(u32), // some variants omitted
}
Expand description

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

ConnectionShutdown

Connection shut down.

Internal

An internal error occurred.

SystemErr(u32)

Tuple Fields

0: u32

An unknown system error occurred.

TransportErr(u32)

Tuple Fields

0: u32

An unknown transport error occurred.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.