#[non_exhaustive]pub enum NetStackSendError {
SocketSend(SocketSendError),
InterfaceSend(InterfaceSendError),
NoRoute,
AnyPortMissingKey,
WrongPortKind,
AnyPortNotUnique,
AllPortMissingKey,
}Expand description
An error from calling a NetStack “send” method
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.
SocketSend(SocketSendError)
InterfaceSend(InterfaceSendError)
NoRoute
AnyPortMissingKey
WrongPortKind
AnyPortNotUnique
AllPortMissingKey
Implementations§
Source§impl NetStackSendError
impl NetStackSendError
pub fn to_error(&self) -> ProtocolError
Trait Implementations§
Source§impl Debug for NetStackSendError
impl Debug for NetStackSendError
Source§impl PartialEq for NetStackSendError
impl PartialEq for NetStackSendError
impl Eq for NetStackSendError
impl StructuralPartialEq for NetStackSendError
Auto Trait Implementations§
impl Freeze for NetStackSendError
impl RefUnwindSafe for NetStackSendError
impl Send for NetStackSendError
impl Sync for NetStackSendError
impl Unpin for NetStackSendError
impl UnwindSafe for NetStackSendError
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