[−][src]Struct netlink_packet_core::error::ErrorBuffer
Implementations
impl<T: AsRef<[u8]>> ErrorBuffer<T>[src]
pub fn new(buffer: T) -> ErrorBuffer<T>[src]
pub fn into_inner(self) -> T[src]
Consume the packet, returning the underlying buffer.
pub fn new_checked(buffer: T) -> Result<Self, DecodeError>[src]
pub fn code(&self) -> i32[src]
Return the error code
impl<'a, T: AsRef<[u8]> + ?Sized> ErrorBuffer<&'a T>[src]
impl<'a, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> ErrorBuffer<&'a mut T>[src]
pub fn payload_mut(&mut self) -> &mut [u8][src]
Return a mutable pointer to the payload.
impl<T: AsRef<[u8]> + AsMut<[u8]>> ErrorBuffer<T>[src]
Trait Implementations
impl<T: Clone> Clone for ErrorBuffer<T>[src]
pub fn clone(&self) -> ErrorBuffer<T>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug> Debug for ErrorBuffer<T>[src]
impl<T: Eq> Eq for ErrorBuffer<T>[src]
impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<ErrorBuffer<&'buffer T>> for ErrorMessage[src]
pub fn parse(buf: &ErrorBuffer<&'buffer T>) -> Result<ErrorMessage, DecodeError>[src]
impl<T: PartialEq> PartialEq<ErrorBuffer<T>> for ErrorBuffer<T>[src]
pub fn eq(&self, other: &ErrorBuffer<T>) -> bool[src]
pub fn ne(&self, other: &ErrorBuffer<T>) -> bool[src]
impl<T> StructuralEq for ErrorBuffer<T>[src]
impl<T> StructuralPartialEq for ErrorBuffer<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ErrorBuffer<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for ErrorBuffer<T> where
T: Send, [src]
T: Send,
impl<T> Sync for ErrorBuffer<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for ErrorBuffer<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for ErrorBuffer<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,