Enum netstack3_core::ip::AddIpAddrSubnetError
source · pub enum AddIpAddrSubnetError {
Exists,
InvalidAddr,
}
Expand description
Errors that can be returned by the [DeviceIpApiAny::add_ip_addr_subnet
]
function.
Variants§
Exists
The address is already assigned to this device.
InvalidAddr
The address is invalid and cannot be assigned to any device. For example, an IPv4-mapped-IPv6 address.
Trait Implementations§
source§impl Debug for AddIpAddrSubnetError
impl Debug for AddIpAddrSubnetError
source§impl PartialEq for AddIpAddrSubnetError
impl PartialEq for AddIpAddrSubnetError
source§fn eq(&self, other: &AddIpAddrSubnetError) -> bool
fn eq(&self, other: &AddIpAddrSubnetError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AddIpAddrSubnetError
impl StructuralPartialEq for AddIpAddrSubnetError
Auto Trait Implementations§
impl Freeze for AddIpAddrSubnetError
impl RefUnwindSafe for AddIpAddrSubnetError
impl Send for AddIpAddrSubnetError
impl Sync for AddIpAddrSubnetError
impl Unpin for AddIpAddrSubnetError
impl UnwindSafe for AddIpAddrSubnetError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.