pub struct TransactionFlags { /* private fields */ }
Implementations§
Source§impl TransactionFlags
impl TransactionFlags
pub const OneWay: TransactionFlags
pub const CollectNotedAppOps: TransactionFlags
pub const RootObject: TransactionFlags
pub const StatusCode: TransactionFlags
pub const AcceptFds: TransactionFlags
pub const ClearBuf: TransactionFlags
Sourcepub const fn empty() -> TransactionFlags
pub const fn empty() -> TransactionFlags
Returns an empty set of flags
Sourcepub const fn all() -> TransactionFlags
pub const fn all() -> TransactionFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<TransactionFlags>
pub fn from_bits(bits: u32) -> Option<TransactionFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> TransactionFlags
pub const fn from_bits_truncate(bits: u32) -> TransactionFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> TransactionFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> TransactionFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: TransactionFlags) -> bool
pub const fn intersects(&self, other: TransactionFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: TransactionFlags) -> bool
pub const fn contains(&self, other: TransactionFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: TransactionFlags)
pub fn insert(&mut self, other: TransactionFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: TransactionFlags)
pub fn remove(&mut self, other: TransactionFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: TransactionFlags)
pub fn toggle(&mut self, other: TransactionFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: TransactionFlags, value: bool)
pub fn set(&mut self, other: TransactionFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for TransactionFlags
impl Binary for TransactionFlags
Source§impl BitAnd for TransactionFlags
impl BitAnd for TransactionFlags
Source§fn bitand(self, other: TransactionFlags) -> TransactionFlags
fn bitand(self, other: TransactionFlags) -> TransactionFlags
Returns the intersection between the two sets of flags.
Source§type Output = TransactionFlags
type Output = TransactionFlags
&
operator.Source§impl BitAndAssign for TransactionFlags
impl BitAndAssign for TransactionFlags
Source§fn bitand_assign(&mut self, other: TransactionFlags)
fn bitand_assign(&mut self, other: TransactionFlags)
Disables all flags disabled in the set.
Source§impl BitOr for TransactionFlags
impl BitOr for TransactionFlags
Source§fn bitor(self, other: TransactionFlags) -> TransactionFlags
fn bitor(self, other: TransactionFlags) -> TransactionFlags
Returns the union of the two sets of flags.
Source§type Output = TransactionFlags
type Output = TransactionFlags
|
operator.Source§impl BitOrAssign for TransactionFlags
impl BitOrAssign for TransactionFlags
Source§fn bitor_assign(&mut self, other: TransactionFlags)
fn bitor_assign(&mut self, other: TransactionFlags)
Adds the set of flags.
Source§impl BitXor for TransactionFlags
impl BitXor for TransactionFlags
Source§fn bitxor(self, other: TransactionFlags) -> TransactionFlags
fn bitxor(self, other: TransactionFlags) -> TransactionFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = TransactionFlags
type Output = TransactionFlags
^
operator.Source§impl BitXorAssign for TransactionFlags
impl BitXorAssign for TransactionFlags
Source§fn bitxor_assign(&mut self, other: TransactionFlags)
fn bitxor_assign(&mut self, other: TransactionFlags)
Toggles the set of flags.
Source§impl Clone for TransactionFlags
impl Clone for TransactionFlags
Source§fn clone(&self) -> TransactionFlags
fn clone(&self) -> TransactionFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TransactionFlags
impl Debug for TransactionFlags
Source§impl Extend<TransactionFlags> for TransactionFlags
impl Extend<TransactionFlags> for TransactionFlags
Source§fn extend<T: IntoIterator<Item = TransactionFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = TransactionFlags>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<TransactionFlags> for TransactionFlags
impl FromIterator<TransactionFlags> for TransactionFlags
Source§fn from_iter<T: IntoIterator<Item = TransactionFlags>>(
iterator: T,
) -> TransactionFlags
fn from_iter<T: IntoIterator<Item = TransactionFlags>>( iterator: T, ) -> TransactionFlags
Source§impl Hash for TransactionFlags
impl Hash for TransactionFlags
Source§impl LowerHex for TransactionFlags
impl LowerHex for TransactionFlags
Source§impl Not for TransactionFlags
impl Not for TransactionFlags
Source§fn not(self) -> TransactionFlags
fn not(self) -> TransactionFlags
Returns the complement of this set of flags.
Source§type Output = TransactionFlags
type Output = TransactionFlags
!
operator.Source§impl Octal for TransactionFlags
impl Octal for TransactionFlags
Source§impl Ord for TransactionFlags
impl Ord for TransactionFlags
Source§fn cmp(&self, other: &TransactionFlags) -> Ordering
fn cmp(&self, other: &TransactionFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TransactionFlags
impl PartialEq for TransactionFlags
Source§impl PartialOrd for TransactionFlags
impl PartialOrd for TransactionFlags
Source§impl Sub for TransactionFlags
impl Sub for TransactionFlags
Source§fn sub(self, other: TransactionFlags) -> TransactionFlags
fn sub(self, other: TransactionFlags) -> TransactionFlags
Returns the set difference of the two sets of flags.
Source§type Output = TransactionFlags
type Output = TransactionFlags
-
operator.Source§impl SubAssign for TransactionFlags
impl SubAssign for TransactionFlags
Source§fn sub_assign(&mut self, other: TransactionFlags)
fn sub_assign(&mut self, other: TransactionFlags)
Disables all flags enabled in the set.