pub enum SocketAllocateError {
AddressFamilyNotSupported,
InsufficientCapacity,
}Expand description
Errors that can be conveyed when allocating a socket for a client.
Variants§
AddressFamilyNotSupported
The requested Address family is not supported.
InsufficientCapacity
The server does not have the capacity to handle this request.
Implementations§
Source§impl SocketAllocateError
impl SocketAllocateError
Sourcepub fn into_error_code(self) -> u16
pub fn into_error_code(self) -> u16
Convert this error into an error code for the ErrorCode or AddressErrorCode attributes.
Trait Implementations§
Source§impl Clone for SocketAllocateError
impl Clone for SocketAllocateError
Source§fn clone(&self) -> SocketAllocateError
fn clone(&self) -> SocketAllocateError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketAllocateError
impl Debug for SocketAllocateError
Source§impl Display for SocketAllocateError
impl Display for SocketAllocateError
Source§impl Error for SocketAllocateError
impl Error for SocketAllocateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for SocketAllocateError
impl PartialEq for SocketAllocateError
impl Copy for SocketAllocateError
impl Eq for SocketAllocateError
impl StructuralPartialEq for SocketAllocateError
Auto Trait Implementations§
impl Freeze for SocketAllocateError
impl RefUnwindSafe for SocketAllocateError
impl Send for SocketAllocateError
impl Sync for SocketAllocateError
impl Unpin for SocketAllocateError
impl UnwindSafe for SocketAllocateError
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
Mutably borrows from an owned value. Read more