pub enum NlPayload<T, P> {
Ack(Nlmsgerr<T, ()>),
Err(Nlmsgerr<T, P>),
Payload(P),
Empty,
}
Expand description
An enum representing either the desired payload as requested by the payload type parameter, an ACK received at the end of a message or stream of messages, or an error.
Variants§
Ack(Nlmsgerr<T, ()>)
Represents an ACK returned by netlink.
Err(Nlmsgerr<T, P>)
Represents an application level error returned by netlink.
Payload(P)
Represents the requested payload.
Empty
Indicates an empty payload.
Implementations§
Trait Implementations§
Source§impl<'a, T, P> FromBytesWithInput<'a> for NlPayload<T, P>
impl<'a, T, P> FromBytesWithInput<'a> for NlPayload<T, P>
Source§impl<T: Size, P: Size> Size for NlPayload<T, P>
impl<T: Size, P: Size> Size for NlPayload<T, P>
Source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
Source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of of the payload and align it to
the required netlink byte alignment.
impl<T: Eq, P: Eq> Eq for NlPayload<T, P>
impl<T, P> StructuralPartialEq for NlPayload<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for NlPayload<T, P>
impl<T, P> RefUnwindSafe for NlPayload<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for NlPayload<T, P>
impl<T, P> Sync for NlPayload<T, P>
impl<T, P> Unpin for NlPayload<T, P>
impl<T, P> UnwindSafe for NlPayload<T, P>where
P: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more