#[non_exhaustive]pub enum RealtimeGenerationTransactionError<ModelError, CompletionError> {
Model(ModelError),
Schedule(RealtimeScheduleError),
SamplerCardinality {
expected: usize,
actual: usize,
},
MissingCompletion,
CompletionPending,
Completion(CompletionError),
}Expand description
Invalid composite branch construction or publication.
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.
Model(ModelError)
The model/cache transaction could not branch or publish.
Schedule(RealtimeScheduleError)
The portable delayed-frame schedule identity did not match.
SamplerCardinality
Sampler count must equal text plus every depth-codebook decision.
Fields
MissingCompletion
No exact backend completion was attached to the proposed branch.
CompletionPending
The exact backend submission has not completed yet.
Completion(CompletionError)
Exact completion observation or successful waiting failed.
Trait Implementations§
Source§impl<ModelError: Debug, CompletionError: Debug> Debug for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError: Debug, CompletionError: Debug> Debug for RealtimeGenerationTransactionError<ModelError, CompletionError>
Source§impl<ModelError, CompletionError> Display for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> Display for RealtimeGenerationTransactionError<ModelError, CompletionError>
Source§impl<ModelError, CompletionError> Error for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> Error for RealtimeGenerationTransactionError<ModelError, CompletionError>
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<ModelError, CompletionError> From<RealtimeScheduleError> for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> From<RealtimeScheduleError> for RealtimeGenerationTransactionError<ModelError, CompletionError>
Source§fn from(source: RealtimeScheduleError) -> Self
fn from(source: RealtimeScheduleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ModelError, CompletionError> Freeze for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> RefUnwindSafe for RealtimeGenerationTransactionError<ModelError, CompletionError>where
ModelError: RefUnwindSafe,
CompletionError: RefUnwindSafe,
impl<ModelError, CompletionError> Send for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> Sync for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> Unpin for RealtimeGenerationTransactionError<ModelError, CompletionError>
impl<ModelError, CompletionError> UnsafeUnpin for RealtimeGenerationTransactionError<ModelError, CompletionError>where
ModelError: UnsafeUnpin,
CompletionError: UnsafeUnpin,
impl<ModelError, CompletionError> UnwindSafe for RealtimeGenerationTransactionError<ModelError, CompletionError>where
ModelError: UnwindSafe,
CompletionError: 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