Enum RouteError
pub enum RouteError {
NotUnicast,
Full,
}Expand description
Error returned by [Routes::add], [Routes::add_default_ipv4_route] and
[Routes::add_default_ipv6_route].
Variants§
NotUnicast
The router address is not unicast.
Full
The table has no room for another route. Only possible without the
alloc feature, where the limit is ROUTE_COUNT.
Trait Implementations§
§impl Clone for RouteError
impl Clone for RouteError
§fn clone(&self) -> RouteError
fn clone(&self) -> RouteError
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 RouteError
§impl Debug for RouteError
impl Debug for RouteError
§impl Display for RouteError
impl Display for RouteError
impl Eq for RouteError
§impl Error for RouteError
impl Error for RouteError
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 RouteError
impl Format for RouteError
§impl From<Full> for RouteError
impl From<Full> for RouteError
§fn from(_: Full) -> RouteError
fn from(_: Full) -> RouteError
Converts to this type from the input type.
§impl PartialEq for RouteError
impl PartialEq for RouteError
impl StructuralPartialEq for RouteError
Auto Trait Implementations§
impl Freeze for RouteError
impl RefUnwindSafe for RouteError
impl Send for RouteError
impl Sync for RouteError
impl Unpin for RouteError
impl UnsafeUnpin for RouteError
impl UnwindSafe for RouteError
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