pub struct FlagBuffer<B, T>(/* private fields */);
Expand description
A buffer of flag constants.
Implementations§
Source§impl<'a, B, T> FlagBuffer<B, T>where
B: Default + BitAnd<B, Output = B> + BitAndAssign<B> + BitOr<B, Output = B> + BitOrAssign<B> + Not<Output = B> + From<&'a T> + PartialEq + Copy,
T: 'a,
impl<'a, B, T> FlagBuffer<B, T>where
B: Default + BitAnd<B, Output = B> + BitAndAssign<B> + BitOr<B, Output = B> + BitOrAssign<B> + Not<Output = B> + From<&'a T> + PartialEq + Copy,
T: 'a,
Sourcepub fn from_bitmask(bitmask: B) -> Self
pub fn from_bitmask(bitmask: B) -> Self
Create a FlagBuffer
from a bitmask.
Trait Implementations§
Source§impl<'a, B, T> From<&'a [T]> for FlagBuffer<B, T>
impl<'a, B, T> From<&'a [T]> for FlagBuffer<B, T>
Source§impl<'lifetime, B: FromBytes<'lifetime> + TypeSize + Debug, T: FromBytes<'lifetime>> FromBytes<'lifetime> for FlagBuffer<B, T>
impl<'lifetime, B: FromBytes<'lifetime> + TypeSize + Debug, T: FromBytes<'lifetime>> FromBytes<'lifetime> for FlagBuffer<B, T>
Source§impl<B: Size, T: Size> Size for FlagBuffer<B, T>
impl<B: Size, T: Size> Size for FlagBuffer<B, T>
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.
Source§impl<B, T> TypeSize for FlagBuffer<B, T>where
B: TypeSize,
impl<B, T> TypeSize for FlagBuffer<B, T>where
B: TypeSize,
impl<B: Eq, T: Eq> Eq for FlagBuffer<B, T>
impl<B, T> StructuralPartialEq for FlagBuffer<B, T>
Auto Trait Implementations§
impl<B, T> Freeze for FlagBuffer<B, T>where
B: Freeze,
impl<B, T> RefUnwindSafe for FlagBuffer<B, T>where
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<B, T> Send for FlagBuffer<B, T>
impl<B, T> Sync for FlagBuffer<B, T>
impl<B, T> Unpin for FlagBuffer<B, T>
impl<B, T> UnwindSafe for FlagBuffer<B, T>where
B: 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