Enum ublox_sockets::Error
source · [−]#[non_exhaustive]
pub enum Error {
Exhausted,
Illegal,
Unaddressable,
Timer,
Timeout,
SocketClosed,
BadLength,
NotBound,
ListenerError,
SocketSetFull,
InvalidSocket,
DuplicateSocket,
}
Expand description
The error type for the networking stack.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exhausted
An operation cannot proceed because a buffer is empty or full.
Illegal
An operation is not permitted in the current state.
Unaddressable
An endpoint or address of a remote host could not be translated to a lower level address. E.g. there was no an Ethernet address corresponding to an IPv4 address in the ARP cache, or a TCP connection attempt was made to an unspecified endpoint.
Timer
Timeout
SocketClosed
BadLength
NotBound
ListenerError
SocketSetFull
InvalidSocket
DuplicateSocket
Trait Implementations
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more