Trait netlink_packet_route::traits::Parseable

source ·
pub trait Parseable<T>: Sized
where T: ?Sized,
{ // Required method fn parse(buf: &T) -> Result<Self, DecodeError>; }
Expand description

A Parseable type can be used to deserialize data from the type T for which it is implemented.

Required Methods§

source

fn parse(buf: &T) -> Result<Self, DecodeError>

Deserialize the current type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<AddressMessageBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NeighbourMessageBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NeighbourTableMessageBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NsidMessageBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NextHopBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<RouteMessageBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<RuleMessageBuffer<&'a T>> for Vec<Nla>

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<TcMessageBuffer<&'a T>> for Vec<Nla>

Implementors§

source§

impl<'a, T> Parseable<NetlinkBuffer<&'a T>> for NetlinkHeader
where T: AsRef<[u8]> + ?Sized,

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<AddressMessageBuffer<&'a T>> for AddressMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<LinkMessageBuffer<&'a T>> for LinkMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NeighbourMessageBuffer<&'a T>> for NeighbourMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NeighbourTableMessageBuffer<&'a T>> for NeighbourTableMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<NsidMessageBuffer<&'a T>> for NsidMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<RouteMessageBuffer<&'a T>> for RouteMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<RuleMessageBuffer<&'a T>> for RuleMessage

source§

impl<'a, T: AsRef<[u8]> + 'a> Parseable<TcMessageBuffer<&'a T>> for TcMessage

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::address::nlas::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for AfSpecBridge

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for AfSpecInet

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Inet6

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Inet

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoBridge

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoIpVlan

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoIpoib

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoKind

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoMacVlan

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoMacVtap

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoVlan

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoVrf

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for InfoVxlan

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Prop

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for VethInfo

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::neighbour::nlas::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::neighbour_table::nlas::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::nsid::nlas::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Metrics

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for MplsIpTunnel

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::route::nlas::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::rule::nlas::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Stats2

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::tc::nlas::mirred::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for netlink_packet_route::rtnl::tc::nlas::u32::Nla

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<NlaBuffer<&'a T>> for Action

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RouteMessageBuffer<&'a T>> for RouteHeader

source§

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RuleMessageBuffer<&'a T>> for RuleHeader

source§

impl<'a, T: AsRef<[u8]>> Parseable<NextHopBuffer<&'a T>> for NextHop

source§

impl<'buffer, B, I> Parseable<NetlinkBuffer<&'buffer B>> for NetlinkMessage<I>
where B: AsRef<[u8]> + 'buffer, I: NetlinkDeserializable,

source§

impl<'buffer, T> Parseable<ErrorBuffer<&'buffer T>> for ErrorMessage
where T: AsRef<[u8]> + 'buffer,

source§

impl<'buffer, T> Parseable<NlaBuffer<&'buffer T>> for DefaultNla
where T: AsRef<[u8]> + ?Sized,

source§

impl<T: AsRef<[u8]> + ?Sized> Parseable<SelBuffer<&T>> for Sel

source§

impl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for netlink_packet_route::rtnl::address::nlas::CacheInfo

source§

impl<T: AsRef<[u8]>> Parseable<AddressMessageBuffer<T>> for AddressHeader

source§

impl<T: AsRef<[u8]>> Parseable<Icmp6StatsBuffer<T>> for Icmp6Stats

source§

impl<T: AsRef<[u8]>> Parseable<Inet6CacheInfoBuffer<T>> for Inet6CacheInfo

source§

impl<T: AsRef<[u8]>> Parseable<Inet6DevConfBuffer<T>> for Inet6DevConf

source§

impl<T: AsRef<[u8]>> Parseable<Inet6StatsBuffer<T>> for Inet6Stats

source§

impl<T: AsRef<[u8]>> Parseable<InetDevConfBuffer<T>> for InetDevConf

source§

impl<T: AsRef<[u8]>> Parseable<MapBuffer<T>> for Map

source§

impl<T: AsRef<[u8]>> Parseable<Stats64Buffer<T>> for Stats64

source§

impl<T: AsRef<[u8]>> Parseable<StatsBuffer<T>> for netlink_packet_route::rtnl::link::nlas::Stats

source§

impl<T: AsRef<[u8]>> Parseable<LinkMessageBuffer<T>> for LinkHeader

source§

impl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for netlink_packet_route::rtnl::neighbour::nlas::CacheInfo

source§

impl<T: AsRef<[u8]>> Parseable<NeighbourMessageBuffer<T>> for NeighbourHeader

source§

impl<T: AsRef<[u8]>> Parseable<ConfigBuffer<T>> for Config

source§

impl<T: AsRef<[u8]>> Parseable<StatsBuffer<T>> for netlink_packet_route::rtnl::neighbour_table::nlas::Stats

source§

impl<T: AsRef<[u8]>> Parseable<NeighbourTableMessageBuffer<T>> for NeighbourTableHeader

source§

impl<T: AsRef<[u8]>> Parseable<NsidMessageBuffer<T>> for NsidHeader

source§

impl<T: AsRef<[u8]>> Parseable<CacheInfoBuffer<T>> for netlink_packet_route::rtnl::route::nlas::CacheInfo

source§

impl<T: AsRef<[u8]>> Parseable<MfcStatsBuffer<T>> for MfcStats

source§

impl<T: AsRef<[u8]>> Parseable<TcMirredBuffer<T>> for TcMirred

source§

impl<T: AsRef<[u8]>> Parseable<StatsBasicBuffer<T>> for StatsBasic

source§

impl<T: AsRef<[u8]>> Parseable<StatsBuffer<T>> for netlink_packet_route::rtnl::tc::nlas::Stats

source§

impl<T: AsRef<[u8]>> Parseable<StatsQueueBuffer<T>> for StatsQueue

source§

impl<T: AsRef<[u8]>> Parseable<TcGenBuffer<T>> for TcGen

source§

impl<T: AsRef<[u8]>> Parseable<KeyBuffer<T>> for Key

source§

impl<T: AsRef<[u8]>> Parseable<TcMessageBuffer<T>> for TcHeader