Struct netlink_packet_core::error::ErrorBuffer
source · [−]pub struct ErrorBuffer<T> { /* private fields */ }
Implementations
sourceimpl<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
sourceimpl<T: Clone> Clone for ErrorBuffer<T>
impl<T: Clone> Clone for ErrorBuffer<T>
sourcefn clone(&self) -> ErrorBuffer<T>
fn clone(&self) -> ErrorBuffer<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T: Debug> Debug for ErrorBuffer<T>
impl<T: Debug> Debug for ErrorBuffer<T>
sourceimpl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorBuffer<&'buffer T>> for ErrorMessage
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorBuffer<&'buffer T>> for ErrorMessage
sourcefn parse(buf: &ErrorBuffer<&'buffer T>) -> Result<ErrorMessage, DecodeError>
fn parse(buf: &ErrorBuffer<&'buffer T>) -> Result<ErrorMessage, DecodeError>
Deserialize the current type.
sourceimpl<T: PartialEq> PartialEq<ErrorBuffer<T>> for ErrorBuffer<T>
impl<T: PartialEq> PartialEq<ErrorBuffer<T>> for ErrorBuffer<T>
sourcefn eq(&self, other: &ErrorBuffer<T>) -> bool
fn eq(&self, other: &ErrorBuffer<T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ErrorBuffer<T>) -> bool
fn ne(&self, other: &ErrorBuffer<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for ErrorBuffer<T>
impl<T> StructuralEq for ErrorBuffer<T>
impl<T> StructuralPartialEq for ErrorBuffer<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ErrorBuffer<T> where
T: RefUnwindSafe,
impl<T> Send for ErrorBuffer<T> where
T: Send,
impl<T> Sync for ErrorBuffer<T> where
T: Sync,
impl<T> Unpin for ErrorBuffer<T> where
T: Unpin,
impl<T> UnwindSafe for ErrorBuffer<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more