pub struct IOStreamSpliceFlags { /* private fields */ }
Implementations§
Source§impl IOStreamSpliceFlags
impl IOStreamSpliceFlags
pub const NONE: IOStreamSpliceFlags
pub const CLOSE_STREAM1: IOStreamSpliceFlags
pub const CLOSE_STREAM2: IOStreamSpliceFlags
pub const WAIT_FOR_BOTH: IOStreamSpliceFlags
Sourcepub const fn empty() -> IOStreamSpliceFlags
pub const fn empty() -> IOStreamSpliceFlags
Returns an empty set of flags
Sourcepub const fn all() -> IOStreamSpliceFlags
pub const fn all() -> IOStreamSpliceFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<IOStreamSpliceFlags>
pub fn from_bits(bits: u32) -> Option<IOStreamSpliceFlags>
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) -> IOStreamSpliceFlags
pub const fn from_bits_truncate(bits: u32) -> IOStreamSpliceFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> IOStreamSpliceFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> IOStreamSpliceFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: IOStreamSpliceFlags) -> bool
pub const fn intersects(&self, other: IOStreamSpliceFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: IOStreamSpliceFlags) -> bool
pub const fn contains(&self, other: IOStreamSpliceFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: IOStreamSpliceFlags)
pub fn insert(&mut self, other: IOStreamSpliceFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: IOStreamSpliceFlags)
pub fn remove(&mut self, other: IOStreamSpliceFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: IOStreamSpliceFlags)
pub fn toggle(&mut self, other: IOStreamSpliceFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: IOStreamSpliceFlags, value: bool)
pub fn set(&mut self, other: IOStreamSpliceFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for IOStreamSpliceFlags
impl Binary for IOStreamSpliceFlags
Source§impl BitAnd for IOStreamSpliceFlags
impl BitAnd for IOStreamSpliceFlags
Source§fn bitand(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
fn bitand(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
Returns the intersection between the two sets of flags.
Source§type Output = IOStreamSpliceFlags
type Output = IOStreamSpliceFlags
&
operator.Source§impl BitAndAssign for IOStreamSpliceFlags
impl BitAndAssign for IOStreamSpliceFlags
Source§fn bitand_assign(&mut self, other: IOStreamSpliceFlags)
fn bitand_assign(&mut self, other: IOStreamSpliceFlags)
Disables all flags disabled in the set.
Source§impl BitOr for IOStreamSpliceFlags
impl BitOr for IOStreamSpliceFlags
Source§fn bitor(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
fn bitor(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
Returns the union of the two sets of flags.
Source§type Output = IOStreamSpliceFlags
type Output = IOStreamSpliceFlags
|
operator.Source§impl BitOrAssign for IOStreamSpliceFlags
impl BitOrAssign for IOStreamSpliceFlags
Source§fn bitor_assign(&mut self, other: IOStreamSpliceFlags)
fn bitor_assign(&mut self, other: IOStreamSpliceFlags)
Adds the set of flags.
Source§impl BitXor for IOStreamSpliceFlags
impl BitXor for IOStreamSpliceFlags
Source§fn bitxor(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
fn bitxor(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = IOStreamSpliceFlags
type Output = IOStreamSpliceFlags
^
operator.Source§impl BitXorAssign for IOStreamSpliceFlags
impl BitXorAssign for IOStreamSpliceFlags
Source§fn bitxor_assign(&mut self, other: IOStreamSpliceFlags)
fn bitxor_assign(&mut self, other: IOStreamSpliceFlags)
Toggles the set of flags.
Source§impl Clone for IOStreamSpliceFlags
impl Clone for IOStreamSpliceFlags
Source§fn clone(&self) -> IOStreamSpliceFlags
fn clone(&self) -> IOStreamSpliceFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IOStreamSpliceFlags
impl Debug for IOStreamSpliceFlags
Source§impl Extend<IOStreamSpliceFlags> for IOStreamSpliceFlags
impl Extend<IOStreamSpliceFlags> for IOStreamSpliceFlags
Source§fn extend<T: IntoIterator<Item = IOStreamSpliceFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = IOStreamSpliceFlags>>(&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<IOStreamSpliceFlags> for IOStreamSpliceFlags
impl FromIterator<IOStreamSpliceFlags> for IOStreamSpliceFlags
Source§fn from_iter<T: IntoIterator<Item = IOStreamSpliceFlags>>(
iterator: T,
) -> IOStreamSpliceFlags
fn from_iter<T: IntoIterator<Item = IOStreamSpliceFlags>>( iterator: T, ) -> IOStreamSpliceFlags
Source§impl<'a> FromValue<'a> for IOStreamSpliceFlags
impl<'a> FromValue<'a> for IOStreamSpliceFlags
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for IOStreamSpliceFlags
impl<'a> FromValueOptional<'a> for IOStreamSpliceFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for IOStreamSpliceFlags
impl Hash for IOStreamSpliceFlags
Source§impl LowerHex for IOStreamSpliceFlags
impl LowerHex for IOStreamSpliceFlags
Source§impl Not for IOStreamSpliceFlags
impl Not for IOStreamSpliceFlags
Source§fn not(self) -> IOStreamSpliceFlags
fn not(self) -> IOStreamSpliceFlags
Returns the complement of this set of flags.
Source§type Output = IOStreamSpliceFlags
type Output = IOStreamSpliceFlags
!
operator.Source§impl Octal for IOStreamSpliceFlags
impl Octal for IOStreamSpliceFlags
Source§impl Ord for IOStreamSpliceFlags
impl Ord for IOStreamSpliceFlags
Source§fn cmp(&self, other: &IOStreamSpliceFlags) -> Ordering
fn cmp(&self, other: &IOStreamSpliceFlags) -> 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 IOStreamSpliceFlags
impl PartialEq for IOStreamSpliceFlags
Source§impl PartialOrd for IOStreamSpliceFlags
impl PartialOrd for IOStreamSpliceFlags
Source§impl SetValue for IOStreamSpliceFlags
impl SetValue for IOStreamSpliceFlags
Source§impl StaticType for IOStreamSpliceFlags
impl StaticType for IOStreamSpliceFlags
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for IOStreamSpliceFlags
impl Sub for IOStreamSpliceFlags
Source§fn sub(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
fn sub(self, other: IOStreamSpliceFlags) -> IOStreamSpliceFlags
Returns the set difference of the two sets of flags.
Source§type Output = IOStreamSpliceFlags
type Output = IOStreamSpliceFlags
-
operator.Source§impl SubAssign for IOStreamSpliceFlags
impl SubAssign for IOStreamSpliceFlags
Source§fn sub_assign(&mut self, other: IOStreamSpliceFlags)
fn sub_assign(&mut self, other: IOStreamSpliceFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for IOStreamSpliceFlags
impl UpperHex for IOStreamSpliceFlags
impl Copy for IOStreamSpliceFlags
impl Eq for IOStreamSpliceFlags
impl StructuralPartialEq for IOStreamSpliceFlags
Auto Trait Implementations§
impl Freeze for IOStreamSpliceFlags
impl RefUnwindSafe for IOStreamSpliceFlags
impl Send for IOStreamSpliceFlags
impl Sync for IOStreamSpliceFlags
impl Unpin for IOStreamSpliceFlags
impl UnwindSafe for IOStreamSpliceFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.