Struct Scope Attributes
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
Bitflags that modify scope behavior and observability.
Implementations
impl ScopeAttributes
Referenced types: ScopeAttributes
PARALLEL
Referenced types: ScopeAttributes
Marks the scope as running in parallel with sibling work.
RELOCATABLE
Referenced types: ScopeAttributes
Marks the scope as safe to move across execution contexts.
impl ScopeAttributes
Referenced types: ScopeAttributes
empty
Referenced types: ScopeAttributes
Get a flags value with all bits unset.
all
Referenced types: ScopeAttributes
Get a flags value with all known bits set.
bits
Referenced types: u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
from_bits
Referenced types: u32, Option, ScopeAttributes
Convert from a bits value.
This method will return None if any unknown bits are set.
from_bits_truncate
Referenced types: u32, ScopeAttributes
Convert from a bits value, unsetting any unknown bits.
from_bits_retain
Referenced types: u32, ScopeAttributes
Convert from a bits value exactly.
from_name
Referenced types: str, Option, ScopeAttributes
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_empty
Referenced types: bool
Whether all bits in this flags value are unset.
is_all
Referenced types: bool
Whether all known bits in this flags value are set.
intersects
Referenced types: ScopeAttributes, bool
Whether any set bits in a source flags value are also set in a target flags value.
contains
Referenced types: ScopeAttributes, bool
Whether all set bits in a source flags value are also set in a target flags value.
insert
Referenced types: ScopeAttributes
The bitwise or (|) of the bits in two flags values.
remove
Referenced types: ScopeAttributes
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.
toggle
Referenced types: ScopeAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
set
Referenced types: ScopeAttributes, bool
Call insert when value is true or remove when value is false.
intersection
Referenced types: ScopeAttributes
The bitwise and (&) of the bits in two flags values.
union
Referenced types: ScopeAttributes
The bitwise or (|) of the bits in two flags values.
difference
Referenced types: ScopeAttributes
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_difference
Referenced types: ScopeAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
complement
Referenced types: ScopeAttributes
The bitwise negation (!) of the bits in a flags value, truncating the result.
impl ScopeAttributes
Referenced types: ScopeAttributes
iter
Referenced types: 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_names
Referenced types: 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.
Trait Implementations
impl Binary for ScopeAttributes
Referenced types: Binary, ScopeAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl BitAnd for ScopeAttributes
Referenced types: BitAnd, ScopeAttributes
bitand
Referenced types: bitand, ScopeAttributes
The bitwise and (&) of the bits in two flags values.
Output
Referenced types: Output, ScopeAttributes
impl BitAndAssign for ScopeAttributes
Referenced types: BitAndAssign, ScopeAttributes
bitand_assign
Referenced types: bitand_assign, ScopeAttributes
The bitwise and (&) of the bits in two flags values.
impl BitOr for ScopeAttributes
Referenced types: BitOr, ScopeAttributes
bitor
Referenced types: bitor, ScopeAttributes
The bitwise or (|) of the bits in two flags values.
Output
Referenced types: Output, ScopeAttributes
impl BitOrAssign for ScopeAttributes
Referenced types: BitOrAssign, ScopeAttributes
bitor_assign
Referenced types: bitor_assign, ScopeAttributes
The bitwise or (|) of the bits in two flags values.
impl BitXor for ScopeAttributes
Referenced types: BitXor, ScopeAttributes
bitxor
Referenced types: bitxor, ScopeAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
Output
Referenced types: Output, ScopeAttributes
impl BitXorAssign for ScopeAttributes
Referenced types: BitXorAssign, ScopeAttributes
bitxor_assign
Referenced types: bitxor_assign, ScopeAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
impl Clone for ScopeAttributes
Referenced types: Clone, ScopeAttributes
clone
Referenced types: clone, ScopeAttributes
clone_from
Referenced types: clone_from
impl Debug for ScopeAttributes
Referenced types: Debug, ScopeAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl<'de> Deserialize<'de> for ScopeAttributes
Referenced types: Deserialize, ScopeAttributes
deserialize
Referenced types: deserialize, Result, ScopeAttributes, Deserializer, Error
impl Extend<ScopeAttributes> for ScopeAttributes
Referenced types: Extend, ScopeAttributes
extend
Referenced types: extend, IntoIterator, ScopeAttributes
The bitwise or (|) of the bits in each flags value.
extend_one
Referenced types: extend_one
extend_reserve
Referenced types: extend_reserve, usize
impl Flags for ScopeAttributes
Referenced types: ScopeAttributes
FLAGS
Referenced types: ScopeAttributes
Bits
Referenced types: u32
bits
Referenced types: u32
from_bits_retain
Referenced types: u32, ScopeAttributes
empty
all
known_bits
unknown_bits
contains_unknown_bits
Referenced types: bool
from_bits
Referenced types: Option
from_bits_truncate
from_name
iter
iter_names
iter_defined_names
is_empty
Referenced types: bool
is_all
Referenced types: bool
intersects
contains
truncate
Referenced types: Sized
insert
Referenced types: Sized
remove
Referenced types: Sized
toggle
Referenced types: Sized
set
clear
Referenced types: Sized
intersection
union
difference
symmetric_difference
complement
impl FromIterator<ScopeAttributes> for ScopeAttributes
Referenced types: FromIterator, ScopeAttributes
from_iter
Referenced types: from_iter, ScopeAttributes, IntoIterator
The bitwise or (|) of the bits in each flags value.
impl Hash for ScopeAttributes
Referenced types: Hash, ScopeAttributes
hash
Referenced types: hash, &mut __H, Hasher
hash_slice
Referenced types: hash_slice, &mut H, Hasher, Sized
impl IntoIterator for ScopeAttributes
Referenced types: IntoIterator, ScopeAttributes
Item
Referenced types: Item, ScopeAttributes
IntoIter
Referenced types: IntoIter, ScopeAttributes
into_iter
Referenced types: into_iter, ScopeAttributes, IntoIterator, IntoIter
impl LowerHex for ScopeAttributes
Referenced types: LowerHex, ScopeAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Not for ScopeAttributes
Referenced types: Not, ScopeAttributes
not
Referenced types: not, ScopeAttributes
The bitwise negation (!) of the bits in a flags value, truncating the result.
Output
Referenced types: Output, ScopeAttributes
impl Octal for ScopeAttributes
Referenced types: Octal, ScopeAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl PartialEq for ScopeAttributes
Referenced types: PartialEq, ScopeAttributes
eq
Referenced types: eq, ScopeAttributes, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for ScopeAttributes
Referenced types: Serialize, ScopeAttributes
serialize
Referenced types: serialize, Result, Serializer, Ok, Error
impl Sub for ScopeAttributes
Referenced types: Sub, ScopeAttributes
sub
Referenced types: sub, ScopeAttributes
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.
Output
Referenced types: Output, ScopeAttributes
impl SubAssign for ScopeAttributes
Referenced types: SubAssign, ScopeAttributes
sub_assign
Referenced types: sub_assign, ScopeAttributes
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 ScopeAttributes
Referenced types: UpperHex, ScopeAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Copy for ScopeAttributes
Referenced types: Copy, ScopeAttributes
impl Eq for ScopeAttributes
Referenced types: Eq, ScopeAttributes
impl StructuralPartialEq for ScopeAttributes
Referenced types: StructuralPartialEq, ScopeAttributes