#[non_exhaustive]pub enum RealtimePayloadHistoryError {
UnboundContract,
PayloadContract(RealtimePayloadContractError),
ScheduleMismatch,
InvalidSlot {
slot: RealtimeFrameSlot,
total_audio_codebooks: usize,
},
DuplicatePayload {
coordinate: RealtimeSlotCoordinate,
},
MissingPayload {
coordinate: RealtimeSlotCoordinate,
},
CoordinateOverflow {
base_position: usize,
delay: usize,
},
RetentionWindowOverflow {
max_delay: usize,
},
}Expand description
Stable failure while retaining or resolving delayed-coordinate payloads.
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.
UnboundContract
Coordinate payload operations require a complete exact contract.
PayloadContract(RealtimePayloadContractError)
The complete payload identity differs from the bound history.
ScheduleMismatch
The caller supplied a materially different normalized schedule.
InvalidSlot
A coordinate does not name text or an admitted audio codebook.
Fields
§
slot: RealtimeFrameSlotInvalid schedule slot.
DuplicatePayload
A coordinate already has a payload in the current or pending publication.
Fields
§
coordinate: RealtimeSlotCoordinateDuplicate coordinate.
MissingPayload
A required coordinate has no retained payload.
Fields
§
coordinate: RealtimeSlotCoordinateMissing coordinate.
CoordinateOverflow
Adding a schedule delay exceeded the coordinate representation.
RetentionWindowOverflow
Maximum delay cannot be represented as a retained-position count.
Trait Implementations§
Source§impl Clone for RealtimePayloadHistoryError
impl Clone for RealtimePayloadHistoryError
Source§fn clone(&self) -> RealtimePayloadHistoryError
fn clone(&self) -> RealtimePayloadHistoryError
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 RealtimePayloadHistoryError
impl Debug for RealtimePayloadHistoryError
impl Eq for RealtimePayloadHistoryError
Source§impl Error for RealtimePayloadHistoryError
impl Error for RealtimePayloadHistoryError
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 RealtimePayloadHistoryError
Auto Trait Implementations§
impl Freeze for RealtimePayloadHistoryError
impl RefUnwindSafe for RealtimePayloadHistoryError
impl Send for RealtimePayloadHistoryError
impl Sync for RealtimePayloadHistoryError
impl Unpin for RealtimePayloadHistoryError
impl UnsafeUnpin for RealtimePayloadHistoryError
impl UnwindSafe for RealtimePayloadHistoryError
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