pub enum NetlinkPayload<I> {
Done,
Error(ErrorMessage),
Ack(AckMessage),
Noop,
Overrun(Vec<u8>),
InnerMessage(I),
}
Variants
Done
Error(ErrorMessage)
Ack(AckMessage)
Noop
Overrun(Vec<u8>)
InnerMessage(I)
Implementations
sourceimpl<I> NetlinkPayload<I> where
I: NetlinkSerializable,
impl<I> NetlinkPayload<I> where
I: NetlinkSerializable,
pub fn message_type(&self) -> u16
Trait Implementations
sourceimpl<I: Clone> Clone for NetlinkPayload<I>
impl<I: Clone> Clone for NetlinkPayload<I>
sourcefn clone(&self) -> NetlinkPayload<I>
fn clone(&self) -> NetlinkPayload<I>
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<I: Debug> Debug for NetlinkPayload<I>
impl<I: Debug> Debug for NetlinkPayload<I>
sourceimpl<I: PartialEq> PartialEq<NetlinkPayload<I>> for NetlinkPayload<I>
impl<I: PartialEq> PartialEq<NetlinkPayload<I>> for NetlinkPayload<I>
sourcefn eq(&self, other: &NetlinkPayload<I>) -> bool
fn eq(&self, other: &NetlinkPayload<I>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NetlinkPayload<I>) -> bool
fn ne(&self, other: &NetlinkPayload<I>) -> bool
This method tests for !=
.
impl<I: Eq> Eq for NetlinkPayload<I>
impl<I> StructuralEq for NetlinkPayload<I>
impl<I> StructuralPartialEq for NetlinkPayload<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for NetlinkPayload<I> where
I: RefUnwindSafe,
impl<I> Send for NetlinkPayload<I> where
I: Send,
impl<I> Sync for NetlinkPayload<I> where
I: Sync,
impl<I> Unpin for NetlinkPayload<I> where
I: Unpin,
impl<I> UnwindSafe for NetlinkPayload<I> where
I: 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