Enum AddIfaceError
pub enum AddIfaceError {
Full,
UnsupportedMedium,
HardwareAddrMismatch,
}Expand description
Error returned by [Stack::add_iface] and [Stack::add_iface_borrowed].
Variants§
Full
The stack has no room for another interface. Only possible without the
alloc feature, where the limit is IFACE_COUNT.
UnsupportedMedium
The build has no medium-* feature for the device’s medium.
HardwareAddrMismatch
The hardware address the device reports is not of the kind its medium uses.
Trait Implementations§
§impl Clone for AddIfaceError
impl Clone for AddIfaceError
§fn clone(&self) -> AddIfaceError
fn clone(&self) -> AddIfaceError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AddIfaceError
§impl Debug for AddIfaceError
impl Debug for AddIfaceError
§impl Display for AddIfaceError
impl Display for AddIfaceError
impl Eq for AddIfaceError
§impl Error for AddIfaceError
impl Error for AddIfaceError
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()
§impl Format for AddIfaceError
impl Format for AddIfaceError
§impl From<Full> for AddIfaceError
impl From<Full> for AddIfaceError
§fn from(_: Full) -> AddIfaceError
fn from(_: Full) -> AddIfaceError
Converts to this type from the input type.
§impl PartialEq for AddIfaceError
impl PartialEq for AddIfaceError
impl StructuralPartialEq for AddIfaceError
Auto Trait Implementations§
impl Freeze for AddIfaceError
impl RefUnwindSafe for AddIfaceError
impl Send for AddIfaceError
impl Sync for AddIfaceError
impl Unpin for AddIfaceError
impl UnsafeUnpin for AddIfaceError
impl UnwindSafe for AddIfaceError
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