pub struct PushPolicyTypeAttrs<Prev: Rec> { /* private fields */ }Implementations§
Source§impl<Prev: Rec> PushPolicyTypeAttrs<Prev>
impl<Prev: Rec> PushPolicyTypeAttrs<Prev>
pub fn new(prev: Prev) -> Self
pub fn end_nested(self) -> Prev
Sourcepub fn push_type(self, value: u32) -> Self
pub fn push_type(self, value: u32) -> Self
type of the attribute, enum netlink_attribute_type (U32)
Sourcepub fn push_min_value_signed(self, value: i64) -> Self
pub fn push_min_value_signed(self, value: i64) -> Self
minimum value for signed integers (S64)
Sourcepub fn push_max_value_signed(self, value: i64) -> Self
pub fn push_max_value_signed(self, value: i64) -> Self
maximum value for signed integers (S64)
Sourcepub fn push_min_value_u(self, value: u64) -> Self
pub fn push_min_value_u(self, value: u64) -> Self
minimum value for unsigned integers (U64)
Sourcepub fn push_max_value_u(self, value: u64) -> Self
pub fn push_max_value_u(self, value: u64) -> Self
maximum value for unsigned integers (U64)
Sourcepub fn push_min_length(self, value: u32) -> Self
pub fn push_min_length(self, value: u32) -> Self
minimum length for binary attributes, no minimum if not given (U32)
Sourcepub fn push_max_length(self, value: u32) -> Self
pub fn push_max_length(self, value: u32) -> Self
maximum length for binary attributes, no maximum if not given (U32)
Sourcepub fn push_policy_idx(self, value: u32) -> Self
pub fn push_policy_idx(self, value: u32) -> Self
sub policy for nested and nested array types (U32)
Sourcepub fn push_policy_maxtype(self, value: u32) -> Self
pub fn push_policy_maxtype(self, value: u32) -> Self
maximum sub policy attribute for nested and nested array types, this can in theory be < the size of the policy pointed to by the index, if limited inside the nesting (U32)
Sourcepub fn push_bitfield32_mask(self, value: u32) -> Self
pub fn push_bitfield32_mask(self, value: u32) -> Self
valid mask for the bitfield32 type (U32)
Trait Implementations§
Source§impl<Prev: Rec> Drop for PushPolicyTypeAttrs<Prev>
impl<Prev: Rec> Drop for PushPolicyTypeAttrs<Prev>
Auto Trait Implementations§
impl<Prev> Freeze for PushPolicyTypeAttrs<Prev>where
Prev: Freeze,
impl<Prev> RefUnwindSafe for PushPolicyTypeAttrs<Prev>where
Prev: RefUnwindSafe,
impl<Prev> Send for PushPolicyTypeAttrs<Prev>where
Prev: Send,
impl<Prev> Sync for PushPolicyTypeAttrs<Prev>where
Prev: Sync,
impl<Prev> Unpin for PushPolicyTypeAttrs<Prev>where
Prev: Unpin,
impl<Prev> UnwindSafe for PushPolicyTypeAttrs<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