Skip to navigation

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.

pub struct ScopeAttributes(/* private fields */);

Bitflags that modify scope behavior and observability.

Implementations

impl ScopeAttributes

impl ScopeAttributes

Referenced types: ScopeAttributes

PARALLEL

pub const PARALLEL: ScopeAttributes

Referenced types: ScopeAttributes

Marks the scope as running in parallel with sibling work.

RELOCATABLE

pub const RELOCATABLE: ScopeAttributes

Referenced types: ScopeAttributes

Marks the scope as safe to move across execution contexts.

impl ScopeAttributes

impl ScopeAttributes

Referenced types: ScopeAttributes

empty

pub const fn empty() -> ScopeAttributes

Referenced types: ScopeAttributes

Get a flags value with all bits unset.

all

pub const fn all() -> ScopeAttributes

Referenced types: ScopeAttributes

Get a flags value with all known bits set.

bits

pub const fn bits(&self) -> u32

Referenced types: u32

Get the underlying bits value.

The returned value is exactly the bits set in this flags value.

from_bits

pub const fn from_bits(bits: u32) -> Option<ScopeAttributes>

Referenced types: u32, Option, ScopeAttributes

Convert from a bits value.

This method will return None if any unknown bits are set.

from_bits_truncate

pub const fn from_bits_truncate(bits: u32) -> ScopeAttributes

Referenced types: u32, ScopeAttributes

Convert from a bits value, unsetting any unknown bits.

from_bits_retain

pub const fn from_bits_retain(bits: u32) -> ScopeAttributes

Referenced types: u32, ScopeAttributes

Convert from a bits value exactly.

from_name

pub fn from_name(name: &str) -> Option<ScopeAttributes>

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

pub const fn is_empty(&self) -> bool

Referenced types: bool

Whether all bits in this flags value are unset.

is_all

pub const fn is_all(&self) -> bool

Referenced types: bool

Whether all known bits in this flags value are set.

intersects

pub const fn intersects(&self, other: ScopeAttributes) -> bool

Referenced types: ScopeAttributes, bool

Whether any set bits in a source flags value are also set in a target flags value.

contains

pub const fn contains(&self, other: ScopeAttributes) -> bool

Referenced types: ScopeAttributes, bool

Whether all set bits in a source flags value are also set in a target flags value.

insert

pub fn insert(&mut self, other: ScopeAttributes)

Referenced types: ScopeAttributes

The bitwise or (|) of the bits in two flags values.

remove

pub fn remove(&mut self, other: ScopeAttributes)

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

pub fn toggle(&mut self, other: ScopeAttributes)

Referenced types: ScopeAttributes

The bitwise exclusive-or (^) of the bits in two flags values.

set

pub fn set(&mut self, other: ScopeAttributes, value: bool)

Referenced types: ScopeAttributes, bool

Call insert when value is true or remove when value is false.

intersection

pub const fn intersection(self, other: ScopeAttributes) -> ScopeAttributes

Referenced types: ScopeAttributes

The bitwise and (&) of the bits in two flags values.

union

pub const fn union(self, other: ScopeAttributes) -> ScopeAttributes

Referenced types: ScopeAttributes

The bitwise or (|) of the bits in two flags values.

difference

pub const fn difference(self, other: ScopeAttributes) -> ScopeAttributes

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

pub const fn symmetric_difference(
self,
other: ScopeAttributes,
) -> ScopeAttributes

Referenced types: ScopeAttributes

The bitwise exclusive-or (^) of the bits in two flags values.

complement

pub const fn complement(self) -> ScopeAttributes

Referenced types: ScopeAttributes

The bitwise negation (!) of the bits in a flags value, truncating the result.

impl ScopeAttributes

impl ScopeAttributes

Referenced types: ScopeAttributes

iter

pub const fn iter(&self) -> Iter<ScopeAttributes>

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

pub const fn iter_names(&self) -> IterNames<ScopeAttributes>

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

impl Binary for ScopeAttributes

Referenced types: Binary, ScopeAttributes

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error

impl BitAnd for ScopeAttributes

impl BitAnd for ScopeAttributes

Referenced types: BitAnd, ScopeAttributes

bitand

fn bitand(self, other: ScopeAttributes) -> ScopeAttributes

Referenced types: bitand, ScopeAttributes

The bitwise and (&) of the bits in two flags values.

Output

type Output = ScopeAttributes

Referenced types: Output, ScopeAttributes

impl BitAndAssign for ScopeAttributes

impl BitAndAssign for ScopeAttributes

Referenced types: BitAndAssign, ScopeAttributes

bitand_assign

fn bitand_assign(&mut self, other: ScopeAttributes)

Referenced types: bitand_assign, ScopeAttributes

The bitwise and (&) of the bits in two flags values.

impl BitOr for ScopeAttributes

impl BitOr for ScopeAttributes

Referenced types: BitOr, ScopeAttributes

bitor

fn bitor(self, other: ScopeAttributes) -> ScopeAttributes

Referenced types: bitor, ScopeAttributes

The bitwise or (|) of the bits in two flags values.

Output

type Output = ScopeAttributes

Referenced types: Output, ScopeAttributes

impl BitOrAssign for ScopeAttributes

impl BitOrAssign for ScopeAttributes

Referenced types: BitOrAssign, ScopeAttributes

bitor_assign

fn bitor_assign(&mut self, other: ScopeAttributes)

Referenced types: bitor_assign, ScopeAttributes

The bitwise or (|) of the bits in two flags values.

impl BitXor for ScopeAttributes

impl BitXor for ScopeAttributes

Referenced types: BitXor, ScopeAttributes

bitxor

fn bitxor(self, other: ScopeAttributes) -> ScopeAttributes

Referenced types: bitxor, ScopeAttributes

The bitwise exclusive-or (^) of the bits in two flags values.

Output

type Output = ScopeAttributes

Referenced types: Output, ScopeAttributes

impl BitXorAssign for ScopeAttributes

impl BitXorAssign for ScopeAttributes

Referenced types: BitXorAssign, ScopeAttributes

bitxor_assign

fn bitxor_assign(&mut self, other: ScopeAttributes)

Referenced types: bitxor_assign, ScopeAttributes

The bitwise exclusive-or (^) of the bits in two flags values.

impl Clone for ScopeAttributes

impl Clone for ScopeAttributes

Referenced types: Clone, ScopeAttributes

clone

fn clone(&self) -> ScopeAttributes

Referenced types: clone, ScopeAttributes

clone_from

fn clone_from(&mut self, source: &Self)

Referenced types: clone_from

impl Debug for ScopeAttributes

impl Debug for ScopeAttributes

Referenced types: Debug, ScopeAttributes

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error

impl<'de> Deserialize<'de> for ScopeAttributes

impl<'de> Deserialize<'de> for ScopeAttributes

Referenced types: Deserialize, ScopeAttributes

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<ScopeAttributes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, ScopeAttributes, Deserializer, Error

impl Extend<ScopeAttributes> for ScopeAttributes

impl Extend<ScopeAttributes> for ScopeAttributes

Referenced types: Extend, ScopeAttributes

extend

fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = ScopeAttributes>,

Referenced types: extend, IntoIterator, ScopeAttributes

The bitwise or (|) of the bits in each flags value.

extend_one

fn extend_one(&mut self, item: A)

Referenced types: extend_one

extend_reserve

fn extend_reserve(&mut self, additional: usize)

Referenced types: extend_reserve, usize

impl Flags for ScopeAttributes

impl Flags for ScopeAttributes

Referenced types: ScopeAttributes

FLAGS

const FLAGS: &'static [Flag<ScopeAttributes>]

Referenced types: ScopeAttributes

Bits

type Bits = u32

Referenced types: u32

bits

fn bits(&self) -> u32

Referenced types: u32

from_bits_retain

fn from_bits_retain(bits: u32) -> ScopeAttributes

Referenced types: u32, ScopeAttributes

empty

fn empty() -> Self

all

fn all() -> Self

known_bits

fn known_bits(&self) -> Self::Bits

unknown_bits

fn unknown_bits(&self) -> Self::Bits

contains_unknown_bits

fn contains_unknown_bits(&self) -> bool

Referenced types: bool

from_bits

fn from_bits(bits: Self::Bits) -> Option<Self>

Referenced types: Option

from_bits_truncate

fn from_bits_truncate(bits: Self::Bits) -> Self

from_name

fn from_name(name: &str) -> Option<Self>

Referenced types: str, Option

iter

fn iter(&self) -> Iter<Self>

iter_names

fn iter_names(&self) -> IterNames<Self>

iter_defined_names

fn iter_defined_names() -> IterDefinedNames<Self>

is_empty

fn is_empty(&self) -> bool

Referenced types: bool

is_all

fn is_all(&self) -> bool

Referenced types: bool

intersects

fn intersects(&self, other: Self) -> boolwhere
Self: Sized,

Referenced types: bool, Sized

contains

fn contains(&self, other: Self) -> boolwhere
Self: Sized,

Referenced types: bool, Sized

truncate

fn truncate(&mut self)where
Self: Sized,

Referenced types: Sized

insert

fn insert(&mut self, other: Self)where
Self: Sized,

Referenced types: Sized

remove

fn remove(&mut self, other: Self)where
Self: Sized,

Referenced types: Sized

toggle

fn toggle(&mut self, other: Self)where
Self: Sized,

Referenced types: Sized

set

fn set(&mut self, other: Self, value: bool)where
Self: Sized,

Referenced types: bool, Sized

clear

fn clear(&mut self)where
Self: Sized,

Referenced types: Sized

intersection

fn intersection(self, other: Self) -> Self

union

fn union(self, other: Self) -> Self

difference

fn difference(self, other: Self) -> Self

symmetric_difference

fn symmetric_difference(self, other: Self) -> Self

complement

fn complement(self) -> Self

impl FromIterator<ScopeAttributes> for ScopeAttributes

impl FromIterator<ScopeAttributes> for ScopeAttributes

Referenced types: FromIterator, ScopeAttributes

from_iter

fn from_iter<T>(iterator: T) -> ScopeAttributeswhere
T: IntoIterator<Item = ScopeAttributes>,

Referenced types: from_iter, ScopeAttributes, IntoIterator

The bitwise or (|) of the bits in each flags value.

impl Hash for ScopeAttributes

impl Hash for ScopeAttributes

Referenced types: Hash, ScopeAttributes

hash

fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,

Referenced types: hash, &mut __H, Hasher

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,

Referenced types: hash_slice, &mut H, Hasher, Sized

impl IntoIterator for ScopeAttributes

impl IntoIterator for ScopeAttributes

Referenced types: IntoIterator, ScopeAttributes

Item

type Item = ScopeAttributes

Referenced types: Item, ScopeAttributes

IntoIter

type IntoIter = Iter<ScopeAttributes>

Referenced types: IntoIter, ScopeAttributes

into_iter

fn into_iter(self) -> <ScopeAttributes as IntoIterator>::IntoIter

Referenced types: into_iter, ScopeAttributes, IntoIterator, IntoIter

impl LowerHex for ScopeAttributes

impl LowerHex for ScopeAttributes

Referenced types: LowerHex, ScopeAttributes

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error

impl Not for ScopeAttributes

impl Not for ScopeAttributes

Referenced types: Not, ScopeAttributes

not

fn not(self) -> ScopeAttributes

Referenced types: not, ScopeAttributes

The bitwise negation (!) of the bits in a flags value, truncating the result.

Output

type Output = ScopeAttributes

Referenced types: Output, ScopeAttributes

impl Octal for ScopeAttributes

impl Octal for ScopeAttributes

Referenced types: Octal, ScopeAttributes

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error

impl PartialEq for ScopeAttributes

impl PartialEq for ScopeAttributes

Referenced types: PartialEq, ScopeAttributes

eq

fn eq(&self, other: &ScopeAttributes) -> bool

Referenced types: eq, ScopeAttributes, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for ScopeAttributes

impl Serialize for ScopeAttributes

Referenced types: Serialize, ScopeAttributes

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl Sub for ScopeAttributes

impl Sub for ScopeAttributes

Referenced types: Sub, ScopeAttributes

sub

fn sub(self, other: ScopeAttributes) -> ScopeAttributes

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

type Output = ScopeAttributes

Referenced types: Output, ScopeAttributes

impl SubAssign for ScopeAttributes

impl SubAssign for ScopeAttributes

Referenced types: SubAssign, ScopeAttributes

sub_assign

fn sub_assign(&mut self, other: ScopeAttributes)

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

impl UpperHex for ScopeAttributes

Referenced types: UpperHex, ScopeAttributes

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Referenced types: fmt, Formatter, Result, (), Error

impl Copy for ScopeAttributes

impl Copy for ScopeAttributes

Referenced types: Copy, ScopeAttributes

impl Eq for ScopeAttributes

impl Eq for ScopeAttributes

Referenced types: Eq, ScopeAttributes

impl StructuralPartialEq for ScopeAttributes

impl StructuralPartialEq for ScopeAttributes

Referenced types: StructuralPartialEq, ScopeAttributes