pub struct XpermsBitmap(/* private fields */);Expand description
256-bit bitmap used for extended permissions (such as ioctls and netlink messages).
Implementations§
Source§impl XpermsBitmap
impl XpermsBitmap
pub const BITMAP_BLOCKS: usize = XPERMS_BITMAP_BLOCKS
Sourcepub fn new(elements: [u64; 4]) -> Self
pub fn new(elements: [u64; 4]) -> Self
Constructs a new XpermsBitmap from an array of four 64-bit words.
Sourcepub fn contains(&self, value: u8) -> bool
pub fn contains(&self, value: u8) -> bool
Returns true if the bit corresponding to value is set in this bitmap.
Sourcepub fn from_atomics(atomics: &[AtomicU64; 4]) -> Self
pub fn from_atomics(atomics: &[AtomicU64; 4]) -> Self
Constructs an XpermsBitmap by loading words from an array of atomic 64-bit integers using relaxed ordering.
Sourcepub fn to_atomics(&self, atomics: &[AtomicU64; 4])
pub fn to_atomics(&self, atomics: &[AtomicU64; 4])
Stores this bitmap into an array of atomic 64-bit integers using relaxed ordering.
Trait Implementations§
Source§impl BitAnd for XpermsBitmap
impl BitAnd for XpermsBitmap
Source§impl BitAndAssign for XpermsBitmap
impl BitAndAssign for XpermsBitmap
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for XpermsBitmap
impl BitOr for XpermsBitmap
Source§impl BitOrAssign for XpermsBitmap
impl BitOrAssign for XpermsBitmap
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for XpermsBitmap
impl Clone for XpermsBitmap
Source§fn clone(&self) -> XpermsBitmap
fn clone(&self) -> XpermsBitmap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for XpermsBitmap
Source§impl Debug for XpermsBitmap
impl Debug for XpermsBitmap
impl Eq for XpermsBitmap
Source§impl Hash for XpermsBitmap
impl Hash for XpermsBitmap
Source§impl Not for XpermsBitmap
impl Not for XpermsBitmap
Source§impl PartialEq for XpermsBitmap
impl PartialEq for XpermsBitmap
Source§fn eq(&self, other: &XpermsBitmap) -> bool
fn eq(&self, other: &XpermsBitmap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XpermsBitmap
Source§impl Sub for XpermsBitmap
impl Sub for XpermsBitmap
Source§impl SubAssign for XpermsBitmap
impl SubAssign for XpermsBitmap
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for XpermsBitmap
impl RefUnwindSafe for XpermsBitmap
impl Send for XpermsBitmap
impl Sync for XpermsBitmap
impl Unpin for XpermsBitmap
impl UnsafeUnpin for XpermsBitmap
impl UnwindSafe for XpermsBitmap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more