[][src]Trait netlink_packet_route::traits::Emitable

pub trait Emitable {
    pub fn buffer_len(&self) -> usize;
pub fn emit(&self, buffer: &mut [u8]); }

A type that implements Emitable can be serialized.

Required methods

pub fn buffer_len(&self) -> usize[src]

Return the length of the serialized data.

pub fn emit(&self, buffer: &mut [u8])[src]

Serialize this types and write the serialized data into the given buffer.

Panic

This method panic if the buffer is not big enough. You must make sure the buffer is big enough before calling this method. You can use buffer_len() to check how big the storage needs to be.

Loading content...

Implementations on Foreign Types

impl<'a, T> Emitable for &'a [T] where
    T: Nla
[src]

Loading content...

Implementors

impl Emitable for RtnlMessage[src]

impl Emitable for netlink_packet_route::rtnl::address::nlas::CacheInfo[src]

impl Emitable for AddressHeader[src]

impl Emitable for AddressMessage[src]

impl Emitable for Icmp6Stats[src]

impl Emitable for Inet6CacheInfo[src]

impl Emitable for Inet6DevConf[src]

impl Emitable for Inet6Stats[src]

impl Emitable for InetDevConf[src]

impl Emitable for Map[src]

impl Emitable for Stats64[src]

impl Emitable for netlink_packet_route::rtnl::link::nlas::Stats[src]

impl Emitable for LinkHeader[src]

impl Emitable for LinkMessage[src]

impl Emitable for netlink_packet_route::rtnl::neighbour::nlas::CacheInfo[src]

impl Emitable for NeighbourHeader[src]

impl Emitable for NeighbourMessage[src]

impl Emitable for Config[src]

impl Emitable for netlink_packet_route::rtnl::neighbour_table::nlas::Stats[src]

impl Emitable for NeighbourTableHeader[src]

impl Emitable for NeighbourTableMessage[src]

impl Emitable for NsidHeader[src]

impl Emitable for NsidMessage[src]

impl Emitable for netlink_packet_route::rtnl::route::nlas::CacheInfo[src]

impl Emitable for MfcStats[src]

impl Emitable for RouteHeader[src]

impl Emitable for RouteMessage[src]

impl Emitable for RuleHeader[src]

impl Emitable for RuleMessage[src]

impl Emitable for netlink_packet_route::rtnl::tc::nlas::Stats[src]

impl Emitable for StatsBasic[src]

impl Emitable for StatsQueue[src]

impl Emitable for TcHeader[src]

impl Emitable for TcMessage[src]

impl Emitable for ErrorMessage[src]

impl Emitable for NetlinkHeader[src]

impl<I> Emitable for NetlinkMessage<I> where
    I: NetlinkSerializable<I> + Debug + PartialEq<I> + Eq + Clone
[src]

impl<T> Emitable for T where
    T: Nla
[src]

Loading content...