Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
Bitflags that modify scope behavior and observability.
impl ScopeAttributesimpl ScopeAttributes
PARALLELpub const PARALLEL: Self
Marks the scope as running in parallel with sibling work.
RELOCATABLEpub const RELOCATABLE: Self
Marks the scope as safe to move across execution contexts.
impl ScopeAttributesimpl ScopeAttributes
emptypub const fn empty() -> Self
Get a flags value with all bits unset.
allpub const fn all() -> Self
Get a flags value with all known bits set.
bitspub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
from_bitspub const fn from_bits(bits: u32) -> Option<Self>
Convert from a bits value.
This method will return None if any unknown bits are set.
from_bits_truncatepub const fn from_bits_truncate(bits: u32) -> Self
Convert from a bits value, unsetting any unknown bits.
from_bits_retainpub const fn from_bits_retain(bits: u32) -> Self
Convert from a bits value exactly.
from_namepub fn from_name(name: &str) -> Option<Self>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t correspond to any named flag.
is_emptypub const fn is_empty(&self) -> bool
Whether all bits in this flags value are unset.
is_allpub const fn is_all(&self) -> bool
Whether all known bits in this flags value are set.
intersectspub const fn intersects(&self, other: Self) -> bool
Whether any set bits in a source flags value are also set in a target flags value.
containspub const fn contains(&self, other: Self) -> bool
Whether all set bits in a source flags value are also set in a target flags value.
insertpub fn insert(&mut self, other: Self)
The bitwise or (|) of the bits in two flags values.
removepub fn remove(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.
togglepub fn toggle(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
setpub fn set(&mut self, other: Self, value: bool)
Call insert when value is true or remove when value is false.
intersectionpub const fn intersection(self, other: Self) -> Self
The bitwise and (&) of the bits in two flags values.
unionpub const fn union(self, other: Self) -> Self
The bitwise or (|) of the bits in two flags values.
differencepub const fn difference(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.
symmetric_differencepub const fn symmetric_difference(self, other: Self) -> Self
The bitwise exclusive-or (^) of the bits in two flags values.
complementpub const fn complement(self) -> Self
The bitwise negation (!) of the bits in a flags value, truncating the result.
impl ScopeAttributesimpl ScopeAttributes
iterpub const fn iter(&self) -> Iter<ScopeAttributes>
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
iter_namespub const fn iter_names(&self) -> IterNames<ScopeAttributes>
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
impl Binary for ScopeAttributesimpl Binary for ScopeAttributes
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl BitAnd for ScopeAttributesimpl BitAnd for ScopeAttributes
bitandfn bitand(self, other: Self) -> Self
The bitwise and (&) of the bits in two flags values.
Outputtype Output = ScopeAttributes
impl BitAndAssign for ScopeAttributesimpl BitAndAssign for ScopeAttributes
bitand_assignfn bitand_assign(&mut self, other: Self)
The bitwise and (&) of the bits in two flags values.
impl BitOr for ScopeAttributesimpl BitOr for ScopeAttributes
bitorfn bitor(self, other: ScopeAttributes) -> Self
The bitwise or (|) of the bits in two flags values.
Outputtype Output = ScopeAttributes
impl BitOrAssign for ScopeAttributesimpl BitOrAssign for ScopeAttributes
bitor_assignfn bitor_assign(&mut self, other: Self)
The bitwise or (|) of the bits in two flags values.
impl BitXor for ScopeAttributesimpl BitXor for ScopeAttributes
bitxorfn bitxor(self, other: Self) -> Self
The bitwise exclusive-or (^) of the bits in two flags values.
Outputtype Output = ScopeAttributes
impl BitXorAssign for ScopeAttributesimpl BitXorAssign for ScopeAttributes
bitxor_assignfn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in two flags values.
impl Clone for ScopeAttributesimpl Clone for ScopeAttributes
clonefn clone(&self) -> ScopeAttributes
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for ScopeAttributesimpl Debug for ScopeAttributes
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for ScopeAttributesimpl<'de> Deserialize<'de> for ScopeAttributes
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Extend<ScopeAttributes> for ScopeAttributesimpl Extend<ScopeAttributes> for ScopeAttributes
extendfn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|) of the bits in each flags value.
extend_onefn extend_one(&mut self, item: A)
extend_reservefn extend_reserve(&mut self, additional: usize)
impl Flags for ScopeAttributesimpl Flags for ScopeAttributes
FLAGSconst FLAGS: &'static [Flag<ScopeAttributes>]
Bitstype Bits = u32
bitsfn bits(&self) -> u32
from_bits_retainfn from_bits_retain(bits: u32) -> ScopeAttributes
emptyfn empty() -> Self
allfn all() -> Self
known_bitsfn known_bits(&self) -> Self::Bits
unknown_bitsfn unknown_bits(&self) -> Self::Bits
contains_unknown_bitsfn contains_unknown_bits(&self) -> bool
from_bitsfn from_bits(bits: Self::Bits) -> Option<Self>
from_bits_truncatefn from_bits_truncate(bits: Self::Bits) -> Self
from_namefn from_name(name: &str) -> Option<Self>
iterfn iter(&self) -> Iter<Self>
iter_namesfn iter_names(&self) -> IterNames<Self>
iter_defined_namesfn iter_defined_names() -> IterDefinedNames<Self>
is_emptyfn is_empty(&self) -> bool
is_allfn is_all(&self) -> bool
intersectsfn intersects(&self, other: Self) -> boolwhere
Self: Sized,
containsfn contains(&self, other: Self) -> boolwhere
Self: Sized,
truncatefn truncate(&mut self)where
Self: Sized,
insertfn insert(&mut self, other: Self)where
Self: Sized,
removefn remove(&mut self, other: Self)where
Self: Sized,
togglefn toggle(&mut self, other: Self)where
Self: Sized,
setfn set(&mut self, other: Self, value: bool)where
Self: Sized,
clearfn clear(&mut self)where
Self: Sized,
intersectionfn intersection(self, other: Self) -> Self
unionfn union(self, other: Self) -> Self
differencefn difference(self, other: Self) -> Self
symmetric_differencefn symmetric_difference(self, other: Self) -> Self
complementfn complement(self) -> Self
impl FromIterator<ScopeAttributes> for ScopeAttributesimpl FromIterator<ScopeAttributes> for ScopeAttributes
from_iterfn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|) of the bits in each flags value.
impl Hash for ScopeAttributesimpl Hash for ScopeAttributes
hashfn hash<__H: Hasher>(&self, state: &mut __H)
hash_slicefn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl IntoIterator for ScopeAttributesimpl IntoIterator for ScopeAttributes
Itemtype Item = ScopeAttributes
IntoItertype IntoIter = Iter<ScopeAttributes>
into_iterfn into_iter(self) -> Self::IntoIter
impl LowerHex for ScopeAttributesimpl LowerHex for ScopeAttributes
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Not for ScopeAttributesimpl Not for ScopeAttributes
notfn not(self) -> Self
The bitwise negation (!) of the bits in a flags value, truncating the result.
Outputtype Output = ScopeAttributes
impl Octal for ScopeAttributesimpl Octal for ScopeAttributes
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for ScopeAttributesimpl PartialEq for ScopeAttributes
eqfn eq(&self, other: &ScopeAttributes) -> bool
nefn ne(&self, other: &Rhs) -> bool
impl PublicFlags for ScopeAttributesimpl PublicFlags for ScopeAttributes
Primitivetype Primitive = u32
Internaltype Internal = InternalBitFlags
impl Serialize for ScopeAttributesimpl Serialize for ScopeAttributes
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl Sub for ScopeAttributesimpl Sub for ScopeAttributes
subfn sub(self, other: Self) -> Self
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.
Outputtype Output = ScopeAttributes
impl SubAssign for ScopeAttributesimpl SubAssign for ScopeAttributes
sub_assignfn sub_assign(&mut self, other: Self)
The intersection of a source flags value with the complement of a target flags value (&!).
This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.
impl UpperHex for ScopeAttributesimpl UpperHex for ScopeAttributes
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Copy for ScopeAttributesimpl Copy for ScopeAttributes
impl Eq for ScopeAttributesimpl Eq for ScopeAttributes
impl StructuralPartialEq for ScopeAttributesimpl StructuralPartialEq for ScopeAttributes