Struct LlmAttributes
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 LLM-call behavior and observability.
Implementations
impl LlmAttributes
Referenced types: LlmAttributes
STATEFUL
Referenced types: LlmAttributes
Marks the request as stateful from the runtime’s perspective.
STREAMING
Referenced types: LlmAttributes
Marks the request as streaming.
impl LlmAttributes
Referenced types: LlmAttributes
empty
Referenced types: LlmAttributes
Get a flags value with all bits unset.
all
Referenced types: LlmAttributes
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, LlmAttributes
Convert from a bits value.
This method will return None if any unknown bits are set.
from_bits_truncate
Referenced types: u32, LlmAttributes
Convert from a bits value, unsetting any unknown bits.
from_bits_retain
Referenced types: u32, LlmAttributes
Convert from a bits value exactly.
from_name
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
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: LlmAttributes, bool
Whether any set bits in a source flags value are also set in a target flags value.
contains
Referenced types: LlmAttributes, bool
Whether all set bits in a source flags value are also set in a target flags value.
insert
Referenced types: LlmAttributes
The bitwise or (|) of the bits in two flags values.
remove
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
Referenced types: LlmAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
set
Referenced types: LlmAttributes, bool
Call insert when value is true or remove when value is false.
intersection
Referenced types: LlmAttributes
The bitwise and (&) of the bits in two flags values.
union
Referenced types: LlmAttributes
The bitwise or (|) of the bits in two flags values.
difference
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
Referenced types: LlmAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
complement
Referenced types: LlmAttributes
The bitwise negation (!) of the bits in a flags value, truncating the result.
impl LlmAttributes
Referenced types: LlmAttributes
iter
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
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
Referenced types: Binary, LlmAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl BitAnd for LlmAttributes
Referenced types: BitAnd, LlmAttributes
bitand
Referenced types: bitand, LlmAttributes
The bitwise and (&) of the bits in two flags values.
Output
Referenced types: Output, LlmAttributes
impl BitAndAssign for LlmAttributes
Referenced types: BitAndAssign, LlmAttributes
bitand_assign
Referenced types: bitand_assign, LlmAttributes
The bitwise and (&) of the bits in two flags values.
impl BitOr for LlmAttributes
Referenced types: BitOr, LlmAttributes
bitor
Referenced types: bitor, LlmAttributes
The bitwise or (|) of the bits in two flags values.
Output
Referenced types: Output, LlmAttributes
impl BitOrAssign for LlmAttributes
Referenced types: BitOrAssign, LlmAttributes
bitor_assign
Referenced types: bitor_assign, LlmAttributes
The bitwise or (|) of the bits in two flags values.
impl BitXor for LlmAttributes
Referenced types: BitXor, LlmAttributes
bitxor
Referenced types: bitxor, LlmAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
Output
Referenced types: Output, LlmAttributes
impl BitXorAssign for LlmAttributes
Referenced types: BitXorAssign, LlmAttributes
bitxor_assign
Referenced types: bitxor_assign, LlmAttributes
The bitwise exclusive-or (^) of the bits in two flags values.
impl Clone for LlmAttributes
Referenced types: Clone, LlmAttributes
clone
Referenced types: clone, LlmAttributes
clone_from
Referenced types: clone_from
impl Debug for LlmAttributes
Referenced types: Debug, LlmAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl<'de> Deserialize<'de> for LlmAttributes
Referenced types: Deserialize, LlmAttributes
deserialize
Referenced types: deserialize, Result, LlmAttributes, Deserializer, Error
impl Extend<LlmAttributes> for LlmAttributes
Referenced types: Extend, LlmAttributes
extend
Referenced types: extend, IntoIterator, LlmAttributes
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 LlmAttributes
Referenced types: LlmAttributes
FLAGS
Referenced types: LlmAttributes
Bits
Referenced types: u32
bits
Referenced types: u32
from_bits_retain
Referenced types: u32, LlmAttributes
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<LlmAttributes> for LlmAttributes
Referenced types: FromIterator, LlmAttributes
from_iter
Referenced types: from_iter, LlmAttributes, IntoIterator
The bitwise or (|) of the bits in each flags value.
impl Hash for LlmAttributes
Referenced types: Hash, LlmAttributes
hash
Referenced types: hash, &mut __H, Hasher
hash_slice
Referenced types: hash_slice, &mut H, Hasher, Sized
impl IntoIterator for LlmAttributes
Referenced types: IntoIterator, LlmAttributes
Item
Referenced types: Item, LlmAttributes
IntoIter
Referenced types: IntoIter, LlmAttributes
into_iter
Referenced types: into_iter, LlmAttributes, IntoIterator, IntoIter
impl LowerHex for LlmAttributes
Referenced types: LowerHex, LlmAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Not for LlmAttributes
Referenced types: Not, LlmAttributes
not
Referenced types: not, LlmAttributes
The bitwise negation (!) of the bits in a flags value, truncating the result.
Output
Referenced types: Output, LlmAttributes
impl Octal for LlmAttributes
Referenced types: Octal, LlmAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl PartialEq for LlmAttributes
Referenced types: PartialEq, LlmAttributes
eq
Referenced types: eq, LlmAttributes, bool
ne
Referenced types: ne, &Rhs, bool
impl Serialize for LlmAttributes
Referenced types: Serialize, LlmAttributes
serialize
Referenced types: serialize, Result, Serializer, Ok, Error
impl Sub for LlmAttributes
Referenced types: Sub, LlmAttributes
sub
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
Referenced types: Output, LlmAttributes
impl SubAssign for LlmAttributes
Referenced types: SubAssign, LlmAttributes
sub_assign
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
Referenced types: UpperHex, LlmAttributes
fmt
Referenced types: fmt, Formatter, Result, (), Error
impl Copy for LlmAttributes
Referenced types: Copy, LlmAttributes
impl Eq for LlmAttributes
Referenced types: Eq, LlmAttributes
impl StructuralPartialEq for LlmAttributes
Referenced types: StructuralPartialEq, LlmAttributes