Struct binder_rust::TransactionFlags [−][src]
pub struct TransactionFlags { /* fields omitted */ }
Implementations
impl TransactionFlags
[src]
impl TransactionFlags
[src]pub const OneWay: TransactionFlags
[src]
pub const CollectNotedAppOps: TransactionFlags
[src]
pub const RootObject: TransactionFlags
[src]
pub const StatusCode: TransactionFlags
[src]
pub const AcceptFds: TransactionFlags
[src]
pub const ClearBuf: TransactionFlags
[src]
pub const fn empty() -> TransactionFlags
[src]
Returns an empty set of flags
pub const fn all() -> TransactionFlags
[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<TransactionFlags>
[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) -> TransactionFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> TransactionFlags
[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: TransactionFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: TransactionFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: TransactionFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: TransactionFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: TransactionFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: TransactionFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl BitAnd<TransactionFlags> for TransactionFlags
[src]
impl BitAnd<TransactionFlags> for TransactionFlags
[src]type Output = TransactionFlags
The resulting type after applying the &
operator.
fn bitand(self, other: TransactionFlags) -> TransactionFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<TransactionFlags> for TransactionFlags
[src]
impl BitAndAssign<TransactionFlags> for TransactionFlags
[src]fn bitand_assign(&mut self, other: TransactionFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<TransactionFlags> for TransactionFlags
[src]
impl BitOr<TransactionFlags> for TransactionFlags
[src]type Output = TransactionFlags
The resulting type after applying the |
operator.
fn bitor(self, other: TransactionFlags) -> TransactionFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<TransactionFlags> for TransactionFlags
[src]
impl BitOrAssign<TransactionFlags> for TransactionFlags
[src]fn bitor_assign(&mut self, other: TransactionFlags)
[src]
Adds the set of flags.
impl BitXor<TransactionFlags> for TransactionFlags
[src]
impl BitXor<TransactionFlags> for TransactionFlags
[src]type Output = TransactionFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: TransactionFlags) -> TransactionFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<TransactionFlags> for TransactionFlags
[src]
impl BitXorAssign<TransactionFlags> for TransactionFlags
[src]fn bitxor_assign(&mut self, other: TransactionFlags)
[src]
Toggles the set of flags.
impl Clone for TransactionFlags
[src]
impl Clone for TransactionFlags
[src]fn clone(&self) -> TransactionFlags
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TransactionFlags
[src]
impl Copy for TransactionFlags
[src]impl Eq for TransactionFlags
[src]
impl Eq for TransactionFlags
[src]impl Extend<TransactionFlags> for TransactionFlags
[src]
impl Extend<TransactionFlags> for TransactionFlags
[src]fn extend<T: IntoIterator<Item = TransactionFlags>>(&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<TransactionFlags> for TransactionFlags
[src]
impl FromIterator<TransactionFlags> for TransactionFlags
[src]fn from_iter<T: IntoIterator<Item = TransactionFlags>>(
iterator: T
) -> TransactionFlags
[src]
iterator: T
) -> TransactionFlags
impl Hash for TransactionFlags
[src]
impl Hash for TransactionFlags
[src]impl Not for TransactionFlags
[src]
impl Not for TransactionFlags
[src]type Output = TransactionFlags
The resulting type after applying the !
operator.
fn not(self) -> TransactionFlags
[src]
Returns the complement of this set of flags.
impl Ord for TransactionFlags
[src]
impl Ord for TransactionFlags
[src]impl PartialEq<TransactionFlags> for TransactionFlags
[src]
impl PartialEq<TransactionFlags> for TransactionFlags
[src]fn eq(&self, other: &TransactionFlags) -> bool
[src]
fn ne(&self, other: &TransactionFlags) -> bool
[src]
impl PartialOrd<TransactionFlags> for TransactionFlags
[src]
impl PartialOrd<TransactionFlags> for TransactionFlags
[src]fn partial_cmp(&self, other: &TransactionFlags) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for TransactionFlags
[src]
impl StructuralEq for TransactionFlags
[src]impl StructuralPartialEq for TransactionFlags
[src]
impl StructuralPartialEq for TransactionFlags
[src]impl Sub<TransactionFlags> for TransactionFlags
[src]
impl Sub<TransactionFlags> for TransactionFlags
[src]type Output = TransactionFlags
The resulting type after applying the -
operator.
fn sub(self, other: TransactionFlags) -> TransactionFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<TransactionFlags> for TransactionFlags
[src]
impl SubAssign<TransactionFlags> for TransactionFlags
[src]fn sub_assign(&mut self, other: TransactionFlags)
[src]
Disables all flags enabled in the set.
Auto Trait Implementations
impl RefUnwindSafe for TransactionFlags
impl RefUnwindSafe for TransactionFlags
impl Send for TransactionFlags
impl Send for TransactionFlags
impl Sync for TransactionFlags
impl Sync for TransactionFlags
impl Unpin for TransactionFlags
impl Unpin for TransactionFlags
impl UnwindSafe for TransactionFlags
impl UnwindSafe for TransactionFlags