Struct netlink_packet_route::rtnl::RtnlMessageBuffer
source · pub struct RtnlMessageBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> RtnlMessageBuffer<T>
impl<T: AsRef<[u8]>> RtnlMessageBuffer<T>
pub fn new(buffer: T) -> Self
pub fn into_inner(self) -> T
Trait Implementations§
source§impl<T: Clone> Clone for RtnlMessageBuffer<T>
impl<T: Clone> Clone for RtnlMessageBuffer<T>
source§fn clone(&self) -> RtnlMessageBuffer<T>
fn clone(&self) -> RtnlMessageBuffer<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for RtnlMessageBuffer<T>
impl<T: Debug> Debug for RtnlMessageBuffer<T>
source§impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<RtnlMessageBuffer<&'a T>, u16> for RtnlMessage
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<RtnlMessageBuffer<&'a T>, u16> for RtnlMessage
source§fn parse_with_param(
buf: &RtnlMessageBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
fn parse_with_param(
buf: &RtnlMessageBuffer<&'a T>,
message_type: u16
) -> Result<Self, DecodeError>
Deserialize the current type.