pub enum Usage {
Llm(LlmModelUsage),
Tts(TtsModelUsage),
Stt(SttModelUsage),
Interruption(InterruptionModelUsage),
Eot(EotModelUsage),
}Variants§
Llm(LlmModelUsage)
Tts(TtsModelUsage)
Stt(SttModelUsage)
Interruption(InterruptionModelUsage)
Eot(EotModelUsage)
Implementations§
Source§impl Usage
impl Usage
Sourcepub fn merge(
field: &mut Option<Usage>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Usage>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnsafeUnpin for Usage
impl UnwindSafe for Usage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more