pub enum SocketOptionError {
TryAgain,
InvalidFileDescriptor,
DestinationAddressRequired,
TimeoutTooBig,
InvalidOption,
AlreadyConnected,
UnsupportedOption,
NotASocket,
OutOfMemory,
OutOfResources,
OperationNotSupported,
ModemShutdown,
}Expand description
Errors that can occur when setting socket options.
Variants§
TryAgain
The option could not be set when requested, try again.
InvalidFileDescriptor
The socket argument is not a valid file descriptor.
DestinationAddressRequired
The socket option NRF_SO_RAI with value NRF_RAI_NO_DATA cannot be set on a socket that is not connected.
TimeoutTooBig
The send and receive timeout values are too big to fit into the timeout fields in the socket structure.
InvalidOption
The specified option is invalid at the specified socket level or the socket has been shut down.
AlreadyConnected
The socket is already connected, and a specified option cannot be set while the socket is connected.
UnsupportedOption
The option is not supported by the protocol.
NotASocket
The socket argument does not refer to a socket.
OutOfMemory
There was insufficient memory available for the operation to complete.
OutOfResources
Insufficient resources are available in the system to complete the call.
OperationNotSupported
The option is not supported with the current socket configuration.
ModemShutdown
Modem was shut down.
Trait Implementations§
Source§impl Clone for SocketOptionError
impl Clone for SocketOptionError
Source§fn clone(&self) -> SocketOptionError
fn clone(&self) -> SocketOptionError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more