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 LlmAttributes(/* private fields */);

Bitflags that modify LLM-call behavior and observability.

Implementations

impl LlmAttributes

impl LlmAttributes

Referenced types: LlmAttributes

STATEFUL

pub const STATEFUL: LlmAttributes

Referenced types: LlmAttributes

Marks the request as stateful from the runtime’s perspective.

STREAMING

pub const STREAMING: LlmAttributes

Referenced types: LlmAttributes

Marks the request as streaming.

impl LlmAttributes

impl LlmAttributes

Referenced types: LlmAttributes

empty

pub const fn empty() -> LlmAttributes

Referenced types: LlmAttributes

Get a flags value with all bits unset.

all

pub const fn all() -> LlmAttributes

Referenced types: LlmAttributes

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<LlmAttributes>

Referenced types: u32, Option, LlmAttributes

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) -> LlmAttributes

Referenced types: u32, LlmAttributes

Convert from a bits value, unsetting any unknown bits.

from_bits_retain

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

Referenced types: u32, LlmAttributes

Convert from a bits value exactly.

from_name

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

Referenced types: str, Option, LlmAttributes

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: LlmAttributes) -> bool

Referenced types: LlmAttributes, 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: LlmAttributes) -> bool

Referenced types: LlmAttributes, 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: LlmAttributes)

Referenced types: LlmAttributes

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

remove

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

Referenced types: LlmAttributes

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: LlmAttributes)

Referenced types: LlmAttributes

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

set

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

Referenced types: LlmAttributes, bool

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

intersection

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

Referenced types: LlmAttributes

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

union

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

Referenced types: LlmAttributes

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

difference

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

Referenced types: LlmAttributes

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: LlmAttributes) -> LlmAttributes

Referenced types: LlmAttributes

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

complement

pub const fn complement(self) -> LlmAttributes

Referenced types: LlmAttributes

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

impl LlmAttributes

impl LlmAttributes

Referenced types: LlmAttributes

iter

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

Referenced types: LlmAttributes

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<LlmAttributes>

Referenced types: LlmAttributes

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 LlmAttributes

impl Binary for LlmAttributes

Referenced types: Binary, LlmAttributes

fmt

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

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

impl BitAnd for LlmAttributes

impl BitAnd for LlmAttributes

Referenced types: BitAnd, LlmAttributes

bitand

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

Referenced types: bitand, LlmAttributes

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

Output

type Output = LlmAttributes

Referenced types: Output, LlmAttributes

impl BitAndAssign for LlmAttributes

impl BitAndAssign for LlmAttributes

Referenced types: BitAndAssign, LlmAttributes

bitand_assign

fn bitand_assign(&mut self, other: LlmAttributes)

Referenced types: bitand_assign, LlmAttributes

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

impl BitOr for LlmAttributes

impl BitOr for LlmAttributes

Referenced types: BitOr, LlmAttributes

bitor

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

Referenced types: bitor, LlmAttributes

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

Output

type Output = LlmAttributes

Referenced types: Output, LlmAttributes

impl BitOrAssign for LlmAttributes

impl BitOrAssign for LlmAttributes

Referenced types: BitOrAssign, LlmAttributes

bitor_assign

fn bitor_assign(&mut self, other: LlmAttributes)

Referenced types: bitor_assign, LlmAttributes

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

impl BitXor for LlmAttributes

impl BitXor for LlmAttributes

Referenced types: BitXor, LlmAttributes

bitxor

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

Referenced types: bitxor, LlmAttributes

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

Output

type Output = LlmAttributes

Referenced types: Output, LlmAttributes

impl BitXorAssign for LlmAttributes

impl BitXorAssign for LlmAttributes

Referenced types: BitXorAssign, LlmAttributes

bitxor_assign

fn bitxor_assign(&mut self, other: LlmAttributes)

Referenced types: bitxor_assign, LlmAttributes

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

impl Clone for LlmAttributes

impl Clone for LlmAttributes

Referenced types: Clone, LlmAttributes

clone

fn clone(&self) -> LlmAttributes

Referenced types: clone, LlmAttributes

clone_from

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

Referenced types: clone_from

impl Debug for LlmAttributes

impl Debug for LlmAttributes

Referenced types: Debug, LlmAttributes

fmt

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

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

impl<'de> Deserialize<'de> for LlmAttributes

impl<'de> Deserialize<'de> for LlmAttributes

Referenced types: Deserialize, LlmAttributes

deserialize

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

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

impl Extend<LlmAttributes> for LlmAttributes

impl Extend<LlmAttributes> for LlmAttributes

Referenced types: Extend, LlmAttributes

extend

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

Referenced types: extend, IntoIterator, LlmAttributes

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 LlmAttributes

impl Flags for LlmAttributes

Referenced types: LlmAttributes

FLAGS

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

Referenced types: LlmAttributes

Bits

type Bits = u32

Referenced types: u32

bits

fn bits(&self) -> u32

Referenced types: u32

from_bits_retain

fn from_bits_retain(bits: u32) -> LlmAttributes

Referenced types: u32, LlmAttributes

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<LlmAttributes> for LlmAttributes

impl FromIterator<LlmAttributes> for LlmAttributes

Referenced types: FromIterator, LlmAttributes

from_iter

fn from_iter<T>(iterator: T) -> LlmAttributeswhere
T: IntoIterator<Item = LlmAttributes>,

Referenced types: from_iter, LlmAttributes, IntoIterator

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

impl Hash for LlmAttributes

impl Hash for LlmAttributes

Referenced types: Hash, LlmAttributes

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 LlmAttributes

impl IntoIterator for LlmAttributes

Referenced types: IntoIterator, LlmAttributes

Item

type Item = LlmAttributes

Referenced types: Item, LlmAttributes

IntoIter

type IntoIter = Iter<LlmAttributes>

Referenced types: IntoIter, LlmAttributes

into_iter

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

Referenced types: into_iter, LlmAttributes, IntoIterator, IntoIter

impl LowerHex for LlmAttributes

impl LowerHex for LlmAttributes

Referenced types: LowerHex, LlmAttributes

fmt

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

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

impl Not for LlmAttributes

impl Not for LlmAttributes

Referenced types: Not, LlmAttributes

not

fn not(self) -> LlmAttributes

Referenced types: not, LlmAttributes

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

Output

type Output = LlmAttributes

Referenced types: Output, LlmAttributes

impl Octal for LlmAttributes

impl Octal for LlmAttributes

Referenced types: Octal, LlmAttributes

fmt

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

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

impl PartialEq for LlmAttributes

impl PartialEq for LlmAttributes

Referenced types: PartialEq, LlmAttributes

eq

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

Referenced types: eq, LlmAttributes, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for LlmAttributes

impl Serialize for LlmAttributes

Referenced types: Serialize, LlmAttributes

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 LlmAttributes

impl Sub for LlmAttributes

Referenced types: Sub, LlmAttributes

sub

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

Referenced types: sub, LlmAttributes

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 = LlmAttributes

Referenced types: Output, LlmAttributes

impl SubAssign for LlmAttributes

impl SubAssign for LlmAttributes

Referenced types: SubAssign, LlmAttributes

sub_assign

fn sub_assign(&mut self, other: LlmAttributes)

Referenced types: sub_assign, LlmAttributes

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 LlmAttributes

impl UpperHex for LlmAttributes

Referenced types: UpperHex, LlmAttributes

fmt

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

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

impl Copy for LlmAttributes

impl Copy for LlmAttributes

Referenced types: Copy, LlmAttributes

impl Eq for LlmAttributes

impl Eq for LlmAttributes

Referenced types: Eq, LlmAttributes

impl StructuralPartialEq for LlmAttributes

impl StructuralPartialEq for LlmAttributes

Referenced types: StructuralPartialEq, LlmAttributes