pub enum NetError {
Show 43 variants
AddrInUse,
AlreadyConnected,
AlreadyExists,
BadState,
BadAddress,
BadFileDescriptor,
BrokenPipe,
ConnectionRefused,
ConnectionReset,
CrossesDevices,
DirectoryNotEmpty,
DestAddrRequired,
FilesystemLoop,
FileTooLarge,
InProgress,
Interrupted,
InvalidInput,
InvalidData,
IsADirectory,
MessageTooLong,
NameTooLong,
NoMemory,
NoSuchDevice,
NoSuchDeviceOrAddress,
NotConnected,
NotFound,
NotADirectory,
NotASocket,
NotATty,
OperationNotPermitted,
OperationNotSupported,
AddressFamilyUnsupported,
ProtocolOptionUnsupported,
PermissionDenied,
ReadOnlyFilesystem,
ResourceBusy,
StorageFull,
TimedOut,
Unsupported,
EntropyUnavailable,
WouldBlock,
Io(IoError),
BackendIo,
}Expand description
Errors owned by the network and socket domain.
Variants§
AddrInUse
The requested local address is already bound.
AlreadyConnected
The socket already has an established peer.
AlreadyExists
The requested network object already exists.
BadState
The network object cannot perform the operation in its current state.
BadAddress
A user or filesystem address used by the socket cannot be accessed.
BadFileDescriptor
A descriptor used by the network operation is invalid.
BrokenPipe
The peer has closed the write side of a stream.
ConnectionRefused
The destination rejected the connection attempt.
ConnectionReset
The peer reset an established connection.
CrossesDevices
A path-backed socket operation would cross filesystem devices.
DirectoryNotEmpty
A directory involved in a socket path operation is not empty.
DestAddrRequired
A datagram operation requires a destination address.
FilesystemLoop
Socket-path traversal encountered a filesystem loop.
FileTooLarge
A path-backed socket object exceeds the supported filesystem limit.
InProgress
A nonblocking connection attempt is still in progress.
Interrupted
The network operation was interrupted before completion.
InvalidInput
A socket address, option, or operation argument is invalid.
InvalidData
A path-backed socket object contains invalid filesystem data.
IsADirectory
A socket path unexpectedly refers to a directory.
MessageTooLong
The packet or message exceeds the transport limit.
NameTooLong
A socket path component exceeds the filesystem name limit.
NoMemory
Memory required by the network operation could not be allocated.
NoSuchDevice
The requested interface does not exist.
NoSuchDeviceOrAddress
No interface owns the address, or no route reaches the destination.
NotConnected
The socket has no connected peer.
NotFound
The requested network object was not found.
NotADirectory
A socket path component expected to be a directory is not one.
NotASocket
The selected object is not a socket.
NotATty
The selected socket object is not a terminal.
OperationNotPermitted
The caller is not permitted to change the requested network state.
OperationNotSupported
The socket or transport does not implement the requested operation.
AddressFamilyUnsupported
The address belongs to a family unsupported by this socket.
ProtocolOptionUnsupported
The socket does not recognize the requested protocol option.
PermissionDenied
Filesystem permissions deny access to a path-backed socket.
ReadOnlyFilesystem
A path-backed socket operation attempted to modify a read-only filesystem.
ResourceBusy
A queue or network resource is currently busy.
StorageFull
Storage used by a path-backed socket has no free space.
TimedOut
The network operation did not complete before its deadline.
Unsupported
The requested network capability is unavailable in this build.
A secured wireless connection cannot obtain trusted runtime entropy.
WouldBlock
The operation cannot complete without blocking.
Io(IoError)
A caller-provided I/O buffer failed while transferring packet data.
BackendIo
A network backend or path-backed namespace reported an I/O failure.
Trait Implementations§
impl Copy for NetError
impl Eq for NetError
Source§impl Error for NetError
impl Error for NetError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<NetError> for NetworkRuntimeError
impl From<NetError> for NetworkRuntimeError
impl StructuralPartialEq for NetError
Auto Trait Implementations§
impl Freeze for NetError
impl RefUnwindSafe for NetError
impl Send for NetError
impl Sync for NetError
impl Unpin for NetError
impl UnsafeUnpin for NetError
impl UnwindSafe for NetError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DmaPod for Twhere
T: Copy,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.