#[non_exhaustive]pub enum RealtimePayloadContractError {
EmptyBatch,
ScheduleMismatch,
BatchMismatch,
TextDomainMismatch,
AudioDomainMismatch,
GenerationMismatch,
OwnerMismatch,
CoordinateMismatch,
SlotDomainMismatch,
InvalidSlot {
slot: RealtimeFrameSlot,
total_audio_codebooks: usize,
},
}Expand description
Stable failure while creating or validating exact realtime payload identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyBatch
A payload contract cannot represent an empty batch.
ScheduleMismatch
The normalized speech schedule differs.
BatchMismatch
The positive batch cardinality differs.
TextDomainMismatch
The text-token domain differs.
AudioDomainMismatch
The audio-token domain differs.
GenerationMismatch
The request or session generation identity differs.
OwnerMismatch
The state or resource owner identity differs.
CoordinateMismatch
The delayed-frame coordinate differs.
SlotDomainMismatch
The retained slot domain differs from the contract-derived domain.
InvalidSlot
A coordinate does not name text or an admitted audio codebook.
Fields
§
slot: RealtimeFrameSlotInvalid schedule slot.
Trait Implementations§
Source§impl Clone for RealtimePayloadContractError
impl Clone for RealtimePayloadContractError
Source§fn clone(&self) -> RealtimePayloadContractError
fn clone(&self) -> RealtimePayloadContractError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealtimePayloadContractError
impl Debug for RealtimePayloadContractError
impl Eq for RealtimePayloadContractError
Source§impl Error for RealtimePayloadContractError
impl Error for RealtimePayloadContractError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for RealtimePayloadContractError
Auto Trait Implementations§
impl Freeze for RealtimePayloadContractError
impl RefUnwindSafe for RealtimePayloadContractError
impl Send for RealtimePayloadContractError
impl Sync for RealtimePayloadContractError
impl Unpin for RealtimePayloadContractError
impl UnsafeUnpin for RealtimePayloadContractError
impl UnwindSafe for RealtimePayloadContractError
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