#[non_exhaustive]pub enum RealtimeError<E: Error + 'static> {
Backend(E),
Scheduler(SchedulerError),
ModelMismatch {
component: String,
},
BatchSize {
request: u64,
expected: usize,
actual: usize,
},
EmptyRunBound,
SamplingWhileQueued {
request: u64,
queued: usize,
},
Asynchronous {
work: WorkId,
message: String,
},
}Expand description
Realtime coordination failure with structured backend context.
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.
Backend(E)
Selected backend rejected model, session, input, or execution.
Scheduler(SchedulerError)
Generic scheduler lifecycle or capacity failure.
ModelMismatch
A runtime or released session belongs to a different model.
BatchSize
A request changed its batch size after its first accepted frame.
Fields
EmptyRunBound
A bounded drain must permit at least one frame.
SamplingWhileQueued
Sampling cannot change while accepted frames still use the prior state.
Asynchronous
At least one submitted transition failed asynchronously.
Trait Implementations§
Source§impl<E> Display for RealtimeError<E>
impl<E> Display for RealtimeError<E>
Source§impl<E> Error for RealtimeError<E>
impl<E> Error for RealtimeError<E>
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()
Source§impl<E: Error + 'static> From<SchedulerError> for RealtimeError<E>
impl<E: Error + 'static> From<SchedulerError> for RealtimeError<E>
Source§fn from(source: SchedulerError) -> Self
fn from(source: SchedulerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for RealtimeError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RealtimeError<E>where
E: RefUnwindSafe,
impl<E> Send for RealtimeError<E>where
E: Send,
impl<E> Sync for RealtimeError<E>where
E: Sync,
impl<E> Unpin for RealtimeError<E>where
E: Unpin,
impl<E> UnsafeUnpin for RealtimeError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for RealtimeError<E>where
E: UnwindSafe,
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