pub enum RouteNetlinkMessageParseError {
InvalidLinkMessage(DecodeError),
InvalidRouteMessage(RouteError),
InvalidAddrMessage(AddressError),
InvalidPrefixMessage(PrefixError),
InvalidFibRuleMessage(RuleError),
InvalidTcMessage(TcError),
InvalidNsidMessage(NsidError),
InvalidNeighbourMessage(NeighbourError),
InvalidNeighbourTableMessage(NeighbourTableError),
InvalidNeighbourDiscoveryUserOptionMessage(NeighbourDiscoveryUserOptionError),
UnknownMessageType(u16),
ParseBuffer(DecodeError),
}Variants§
InvalidLinkMessage(DecodeError)
InvalidRouteMessage(RouteError)
InvalidAddrMessage(AddressError)
InvalidPrefixMessage(PrefixError)
InvalidFibRuleMessage(RuleError)
InvalidTcMessage(TcError)
InvalidNsidMessage(NsidError)
InvalidNeighbourMessage(NeighbourError)
InvalidNeighbourTableMessage(NeighbourTableError)
InvalidNeighbourDiscoveryUserOptionMessage(NeighbourDiscoveryUserOptionError)
UnknownMessageType(u16)
ParseBuffer(DecodeError)
Trait Implementations§
Source§impl Error for RouteNetlinkMessageParseError
impl Error for RouteNetlinkMessageParseError
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<AddressError> for RouteNetlinkMessageParseError
impl From<AddressError> for RouteNetlinkMessageParseError
Source§fn from(source: AddressError) -> Self
fn from(source: AddressError) -> Self
Converts to this type from the input type.
Source§impl From<NeighbourDiscoveryUserOptionError> for RouteNetlinkMessageParseError
impl From<NeighbourDiscoveryUserOptionError> for RouteNetlinkMessageParseError
Source§fn from(source: NeighbourDiscoveryUserOptionError) -> Self
fn from(source: NeighbourDiscoveryUserOptionError) -> Self
Converts to this type from the input type.
Source§impl From<NeighbourError> for RouteNetlinkMessageParseError
impl From<NeighbourError> for RouteNetlinkMessageParseError
Source§fn from(source: NeighbourError) -> Self
fn from(source: NeighbourError) -> Self
Converts to this type from the input type.
Source§impl From<NeighbourTableError> for RouteNetlinkMessageParseError
impl From<NeighbourTableError> for RouteNetlinkMessageParseError
Source§fn from(source: NeighbourTableError) -> Self
fn from(source: NeighbourTableError) -> Self
Converts to this type from the input type.
Source§impl From<PrefixError> for RouteNetlinkMessageParseError
impl From<PrefixError> for RouteNetlinkMessageParseError
Source§fn from(source: PrefixError) -> Self
fn from(source: PrefixError) -> Self
Converts to this type from the input type.
Source§impl From<RouteError> for RouteNetlinkMessageParseError
impl From<RouteError> for RouteNetlinkMessageParseError
Source§fn from(source: RouteError) -> Self
fn from(source: RouteError) -> Self
Converts to this type from the input type.
Source§impl From<RouteNetlinkMessageParseError> for DecodeError
impl From<RouteNetlinkMessageParseError> for DecodeError
Source§fn from(e: RouteNetlinkMessageParseError) -> Self
fn from(e: RouteNetlinkMessageParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RouteNetlinkMessageParseError
impl RefUnwindSafe for RouteNetlinkMessageParseError
impl Send for RouteNetlinkMessageParseError
impl Sync for RouteNetlinkMessageParseError
impl Unpin for RouteNetlinkMessageParseError
impl UnwindSafe for RouteNetlinkMessageParseError
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