#[non_exhaustive]pub enum Error {
Adapter(Error),
Contract(CoreError),
Transform(TransformError),
Pipeline(PipelineError),
Observer(ObserverError),
PrefillObserver(PrefillObserverError),
ModelCatalog(CatalogError),
ModelArtifact(ArtifactError),
}Expand description
Failures from convenience-layer validation or delegated mechanics.
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.
Adapter(Error)
The llama.cpp adapter rejected an operation.
Contract(CoreError)
A backend-neutral contract was invalid.
Transform(TransformError)
A transform constructor rejected its configuration.
Pipeline(PipelineError)
A transform pipeline was invalid.
Observer(ObserverError)
A generated-token observer set was invalid.
PrefillObserver(PrefillObserverError)
A controlled-prefill observer was invalid.
ModelCatalog(CatalogError)
The packaged model profile catalog was invalid.
ModelArtifact(ArtifactError)
A caller-supplied profiled model artifact failed verification.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 From<ArtifactError> for Error
impl From<ArtifactError> for Error
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl From<CatalogError> for Error
impl From<CatalogError> for Error
Source§fn from(source: CatalogError) -> Self
fn from(source: CatalogError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: AdapterError) -> Self
fn from(source: AdapterError) -> Self
Converts to this type from the input type.
Source§impl From<ObserverError> for Error
impl From<ObserverError> for Error
Source§fn from(source: ObserverError) -> Self
fn from(source: ObserverError) -> Self
Converts to this type from the input type.
Source§impl From<PipelineError> for Error
impl From<PipelineError> for Error
Source§fn from(source: PipelineError) -> Self
fn from(source: PipelineError) -> Self
Converts to this type from the input type.
Source§impl From<PrefillObserverError> for Error
impl From<PrefillObserverError> for Error
Source§fn from(source: PrefillObserverError) -> Self
fn from(source: PrefillObserverError) -> Self
Converts to this type from the input type.
Source§impl From<TransformError> for Error
impl From<TransformError> for Error
Source§fn from(source: TransformError) -> Self
fn from(source: TransformError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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