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
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more