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