Struct netlink_packet_core::error::ErrorBuffer
source · pub struct ErrorBuffer<T> { /* private fields */ }
Implementations§
source§impl<T: AsRef<[u8]>> ErrorBuffer<T>
impl<T: AsRef<[u8]>> ErrorBuffer<T>
pub fn new(buffer: T) -> ErrorBuffer<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume the packet, returning the underlying buffer.
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>
Trait Implementations§
source§impl<T: Clone> Clone for ErrorBuffer<T>
impl<T: Clone> Clone for ErrorBuffer<T>
source§fn clone(&self) -> ErrorBuffer<T>
fn clone(&self) -> ErrorBuffer<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 ErrorBuffer<T>
impl<T: Debug> Debug for ErrorBuffer<T>
source§impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorBuffer<&'buffer T>> for ErrorMessage
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorBuffer<&'buffer T>> for ErrorMessage
source§fn parse(buf: &ErrorBuffer<&'buffer T>) -> Result<ErrorMessage, DecodeError>
fn parse(buf: &ErrorBuffer<&'buffer T>) -> Result<ErrorMessage, DecodeError>
Deserialize the current type.