Struct netlink_sys::ErrorBuffer [−][src]
pub struct ErrorBuffer<T> { /* fields omitted */ }Methods
impl<T: AsRef<[u8]>> ErrorBuffer<T>[src]
impl<T: AsRef<[u8]>> ErrorBuffer<T>pub fn new(buffer: T) -> ErrorBuffer<T>[src]
pub fn new(buffer: T) -> ErrorBuffer<T>pub fn into_inner(self) -> T[src]
pub fn into_inner(self) -> TConsume the packet, returning the underlying buffer.
pub fn code(&self) -> i32[src]
pub fn code(&self) -> i32Return the error code
impl<'a, T: AsRef<[u8]> + ?Sized> ErrorBuffer<&'a T>[src]
impl<'a, T: AsRef<[u8]> + ?Sized> ErrorBuffer<&'a T>impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> ErrorBuffer<&'a mut T>[src]
impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> ErrorBuffer<&'a mut T>pub fn payload_mut(&mut self) -> &mut [u8][src]
pub fn payload_mut(&mut self) -> &mut [u8]Return a mutable pointer to the payload.
impl<T: AsRef<[u8]> + AsMut<[u8]>> ErrorBuffer<T>[src]
impl<T: AsRef<[u8]> + AsMut<[u8]>> ErrorBuffer<T>Trait Implementations
impl<T: Debug> Debug for ErrorBuffer<T>[src]
impl<T: Debug> Debug for ErrorBuffer<T>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for ErrorBuffer<T>[src]
impl<T: PartialEq> PartialEq for ErrorBuffer<T>fn eq(&self, other: &ErrorBuffer<T>) -> bool[src]
fn eq(&self, other: &ErrorBuffer<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ErrorBuffer<T>) -> bool[src]
fn ne(&self, other: &ErrorBuffer<T>) -> boolThis method tests for !=.
impl<T: Eq> Eq for ErrorBuffer<T>[src]
impl<T: Eq> Eq for ErrorBuffer<T>impl<T: Clone> Clone for ErrorBuffer<T>[src]
impl<T: Clone> Clone for ErrorBuffer<T>fn clone(&self) -> ErrorBuffer<T>[src]
fn clone(&self) -> ErrorBuffer<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorMessage> for ErrorBuffer<&'buffer T>[src]
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorMessage> for ErrorBuffer<&'buffer T>fn parse(&self) -> Result<ErrorMessage>[src]
fn parse(&self) -> Result<ErrorMessage>Deserialize the current type.
Auto Trait Implementations
impl<T> Send for ErrorBuffer<T> where
T: Send,
impl<T> Send for ErrorBuffer<T> where
T: Send, impl<T> Sync for ErrorBuffer<T> where
T: Sync,
impl<T> Sync for ErrorBuffer<T> where
T: Sync,