pub struct PushNlmsgerrAttrs<Prev: Rec> { /* private fields */ }Implementations§
Source§impl<Prev: Rec> PushNlmsgerrAttrs<Prev>
impl<Prev: Rec> PushNlmsgerrAttrs<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_msg_bytes(self, value: &[u8]) -> Self
pub fn push_msg_bytes(self, value: &[u8]) -> Self
error message string (string)
Sourcepub fn push_offset(self, value: u32) -> Self
pub fn push_offset(self, value: u32) -> Self
offset of the invalid attribute in the original message, counting from the beginning of the header (u32)
arbitrary subsystem specific cookie to be used - in the success case - to identify a created object or operation or similar (binary)
Sourcepub fn nested_policy(self) -> PushPolicyTypeAttrs<Self>
pub fn nested_policy(self) -> PushPolicyTypeAttrs<Self>
policy for a rejected attribute
Sourcepub fn push_missing_type(self, value: u16) -> Self
pub fn push_missing_type(self, value: u16) -> Self
type of a missing required attribute, NLMSGERR_ATTR_MISS_NEST will not be present if the attribute was missing at the message level
Sourcepub fn push_missing_nest(self, value: u32) -> Self
pub fn push_missing_nest(self, value: u32) -> Self
offset of the nest where attribute was missing
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushNlmsgerrAttrs<Prev>
impl<Prev: Rec> Drop for PushNlmsgerrAttrs<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushNlmsgerrAttrs<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushNlmsgerrAttrs<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushNlmsgerrAttrs<Prev>where
Prev: Send,
impl<Prev> Sync for PushNlmsgerrAttrs<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushNlmsgerrAttrs<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushNlmsgerrAttrs<Prev>where
Prev: 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