Trait rtnetlink::Emitable [−][src]
A type that implements Emitable
can be serialized.
Required Methods
fn buffer_len(&self) -> usize
Return the length of the serialized data.
fn emit(&self, buffer: &mut [u8])
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.
Implementations on Foreign Types
impl<'a, T: Nla> Emitable for &'a [T]
[src]
impl<'a, T: Nla> Emitable for &'a [T]
Implementors
impl Emitable for NetlinkHeader
impl Emitable for AddressHeader
impl Emitable for AddressMessage
impl Emitable for LinkHeader
impl Emitable for LinkMessage
impl Emitable for RouteHeader
impl Emitable for RouteMessage
impl Emitable for NetlinkMessage
impl Emitable for ErrorMessage
impl<T: Nla> Emitable for T