Struct xdpsock::BindFlags [−][src]
pub struct BindFlags { /* fields omitted */ }
AF_XDP Configuration flags
Implementations
impl BindFlags
[src]
impl BindFlags
[src]pub const XDP_SHARED_UMEM: BindFlags
[src]
Allows you to bind multiple sockets to the same Umem
pub const XDP_COPY: BindFlags
[src]
Packets are copied from userspace, SLOW
pub const XDP_ZEROCOPY: BindFlags
[src]
Packets are NOT copied from userspace, FAST
pub const XDP_USE_NEED_WAKEUP: BindFlags
[src]
If this flag is set after the bind call, the kernel must be woken up via a system call in order to process packets
pub const fn empty() -> BindFlags
[src]
Returns an empty set of flags
pub const fn all() -> BindFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u16
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u16) -> Option<BindFlags>
[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: u16) -> BindFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u16) -> BindFlags
[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: BindFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: BindFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: BindFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: BindFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: BindFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: BindFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAndAssign<BindFlags> for BindFlags
[src]
impl BitAndAssign<BindFlags> for BindFlags
[src]fn bitand_assign(&mut self, other: BindFlags)
[src]
Disables all flags disabled in the set.
impl BitOrAssign<BindFlags> for BindFlags
[src]
impl BitOrAssign<BindFlags> for BindFlags
[src]fn bitor_assign(&mut self, other: BindFlags)
[src]
Adds the set of flags.
impl BitXorAssign<BindFlags> for BindFlags
[src]
impl BitXorAssign<BindFlags> for BindFlags
[src]fn bitxor_assign(&mut self, other: BindFlags)
[src]
Toggles the set of flags.
impl Extend<BindFlags> for BindFlags
[src]
impl Extend<BindFlags> for BindFlags
[src]fn extend<T: IntoIterator<Item = BindFlags>>(&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<BindFlags> for BindFlags
[src]
impl FromIterator<BindFlags> for BindFlags
[src]fn from_iter<T: IntoIterator<Item = BindFlags>>(iterator: T) -> BindFlags
[src]
impl PartialOrd<BindFlags> for BindFlags
[src]
impl PartialOrd<BindFlags> for BindFlags
[src]impl StructuralEq for BindFlags
[src]
impl StructuralEq for BindFlags
[src]impl StructuralPartialEq for BindFlags
[src]
impl StructuralPartialEq for BindFlags
[src]Auto Trait Implementations
impl RefUnwindSafe for BindFlags
impl RefUnwindSafe for BindFlags
impl UnwindSafe for BindFlags
impl UnwindSafe for BindFlags