Struct xdpsock::LibbpfFlags [−][src]
pub struct LibbpfFlags { /* fields omitted */ }
Implementations
impl LibbpfFlags
[src]
impl LibbpfFlags
[src]pub const XSK_LIBBPF_FLAGS__INHIBIT_PROG_LOAD: LibbpfFlags
[src]
pub const fn empty() -> LibbpfFlags
[src]
Returns an empty set of flags
pub const fn all() -> LibbpfFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u32
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<LibbpfFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> LibbpfFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> LibbpfFlags
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: LibbpfFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: LibbpfFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: LibbpfFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: LibbpfFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: LibbpfFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: LibbpfFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAnd<LibbpfFlags> for LibbpfFlags
[src]
impl BitAnd<LibbpfFlags> for LibbpfFlags
[src]type Output = LibbpfFlags
The resulting type after applying the &
operator.
fn bitand(self, other: LibbpfFlags) -> LibbpfFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<LibbpfFlags> for LibbpfFlags
[src]
impl BitAndAssign<LibbpfFlags> for LibbpfFlags
[src]fn bitand_assign(&mut self, other: LibbpfFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<LibbpfFlags> for LibbpfFlags
[src]
impl BitOr<LibbpfFlags> for LibbpfFlags
[src]type Output = LibbpfFlags
The resulting type after applying the |
operator.
fn bitor(self, other: LibbpfFlags) -> LibbpfFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<LibbpfFlags> for LibbpfFlags
[src]
impl BitOrAssign<LibbpfFlags> for LibbpfFlags
[src]fn bitor_assign(&mut self, other: LibbpfFlags)
[src]
Adds the set of flags.
impl BitXor<LibbpfFlags> for LibbpfFlags
[src]
impl BitXor<LibbpfFlags> for LibbpfFlags
[src]type Output = LibbpfFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: LibbpfFlags) -> LibbpfFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<LibbpfFlags> for LibbpfFlags
[src]
impl BitXorAssign<LibbpfFlags> for LibbpfFlags
[src]fn bitxor_assign(&mut self, other: LibbpfFlags)
[src]
Toggles the set of flags.
impl Clone for LibbpfFlags
[src]
impl Clone for LibbpfFlags
[src]fn clone(&self) -> LibbpfFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LibbpfFlags
[src]
impl Copy for LibbpfFlags
[src]impl Eq for LibbpfFlags
[src]
impl Eq for LibbpfFlags
[src]impl Extend<LibbpfFlags> for LibbpfFlags
[src]
impl Extend<LibbpfFlags> for LibbpfFlags
[src]fn extend<T: IntoIterator<Item = LibbpfFlags>>(&mut self, iterator: T)
[src]
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<LibbpfFlags> for LibbpfFlags
[src]
impl FromIterator<LibbpfFlags> for LibbpfFlags
[src]fn from_iter<T: IntoIterator<Item = LibbpfFlags>>(iterator: T) -> LibbpfFlags
[src]
impl Hash for LibbpfFlags
[src]
impl Hash for LibbpfFlags
[src]impl Not for LibbpfFlags
[src]
impl Not for LibbpfFlags
[src]type Output = LibbpfFlags
The resulting type after applying the !
operator.
fn not(self) -> LibbpfFlags
[src]
Returns the complement of this set of flags.
impl Ord for LibbpfFlags
[src]
impl Ord for LibbpfFlags
[src]impl PartialEq<LibbpfFlags> for LibbpfFlags
[src]
impl PartialEq<LibbpfFlags> for LibbpfFlags
[src]fn eq(&self, other: &LibbpfFlags) -> bool
[src]
fn ne(&self, other: &LibbpfFlags) -> bool
[src]
impl PartialOrd<LibbpfFlags> for LibbpfFlags
[src]
impl PartialOrd<LibbpfFlags> for LibbpfFlags
[src]impl StructuralEq for LibbpfFlags
[src]
impl StructuralEq for LibbpfFlags
[src]impl StructuralPartialEq for LibbpfFlags
[src]
impl StructuralPartialEq for LibbpfFlags
[src]impl Sub<LibbpfFlags> for LibbpfFlags
[src]
impl Sub<LibbpfFlags> for LibbpfFlags
[src]type Output = LibbpfFlags
The resulting type after applying the -
operator.
fn sub(self, other: LibbpfFlags) -> LibbpfFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<LibbpfFlags> for LibbpfFlags
[src]
impl SubAssign<LibbpfFlags> for LibbpfFlags
[src]fn sub_assign(&mut self, other: LibbpfFlags)
[src]
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for LibbpfFlags
impl RefUnwindSafe for LibbpfFlags
impl Send for LibbpfFlags
impl Send for LibbpfFlags
impl Sync for LibbpfFlags
impl Sync for LibbpfFlags
impl Unpin for LibbpfFlags
impl Unpin for LibbpfFlags
impl UnwindSafe for LibbpfFlags
impl UnwindSafe for LibbpfFlags