pub enum RouteError {
InvalidValue {
kind: &'static str,
error: DecodeError,
},
ParseNextHopAttributes(DecodeError),
InvalidRtaEncap {
kind: RouteLwEnCapType,
error: NlaError,
},
InvalidMplsIpTunnelTtl(DecodeError),
InvalidRouteMetric {
kind: &'static str,
error: DecodeError,
},
ParseMplsLabel {
expected: usize,
got: usize,
},
ParseRouteProtocol,
InvalidRulePortRange {
expected: usize,
got: usize,
},
ParseNla(NlaError),
Other(DecodeError),
}
Variants§
InvalidValue
ParseNextHopAttributes(DecodeError)
InvalidRtaEncap
InvalidMplsIpTunnelTtl(DecodeError)
InvalidRouteMetric
ParseMplsLabel
ParseRouteProtocol
InvalidRulePortRange
ParseNla(NlaError)
Other(DecodeError)
Trait Implementations§
Source§impl Debug for RouteError
impl Debug for RouteError
Source§impl Display for RouteError
impl Display for RouteError
Source§impl Error for RouteError
impl Error for RouteError
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 From<DecodeError> for RouteError
impl From<DecodeError> for RouteError
Source§impl From<NlaError> for RouteError
impl From<NlaError> for RouteError
Source§impl From<RouteError> for DecodeError
impl From<RouteError> for DecodeError
Source§fn from(err: RouteError) -> Self
fn from(err: RouteError) -> Self
Converts to this type from the input type.
Source§impl From<RouteError> for NeighbourError
impl From<RouteError> for NeighbourError
Source§fn from(source: RouteError) -> Self
fn from(source: RouteError) -> Self
Converts to this type from the input type.
Source§impl From<RouteError> for RuleError
impl From<RouteError> for RuleError
Source§fn from(source: RouteError) -> Self
fn from(source: RouteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RouteError
impl RefUnwindSafe for RouteError
impl Send for RouteError
impl Sync for RouteError
impl Unpin 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