#[non_exhaustive]pub enum ModelLoadError<E: Error + Send + Sync + 'static> {
Artifact(ArtifactError),
Backend(E),
SessionCapability(SessionCapabilityError),
}Expand description
Failure while inspecting, planning, or materializing a model artifact.
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.
Artifact(ArtifactError)
Portable artifact inspection or preparation planning failed.
Backend(E)
The selected backend failed policy resolution or materialization.
SessionCapability(SessionCapabilityError)
The inspected architecture/load-policy/topology route lacks a requirement.
Trait Implementations§
Source§impl<E> Display for ModelLoadError<E>
impl<E> Display for ModelLoadError<E>
Source§impl<E> Error for ModelLoadError<E>
impl<E> Error for ModelLoadError<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 + Send + Sync + 'static> From<ArtifactError> for ModelLoadError<E>
impl<E: Error + Send + Sync + 'static> From<ArtifactError> for ModelLoadError<E>
Source§fn from(source: ArtifactError) -> Self
fn from(source: ArtifactError) -> Self
Converts to this type from the input type.
Source§impl<E: Error + Send + Sync + 'static> From<SessionCapabilityError> for ModelLoadError<E>
impl<E: Error + Send + Sync + 'static> From<SessionCapabilityError> for ModelLoadError<E>
Source§fn from(source: SessionCapabilityError) -> Self
fn from(source: SessionCapabilityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !RefUnwindSafe for ModelLoadError<E>
impl<E> !UnwindSafe for ModelLoadError<E>
impl<E> Freeze for ModelLoadError<E>where
E: Freeze,
impl<E> Send for ModelLoadError<E>
impl<E> Sync for ModelLoadError<E>
impl<E> Unpin for ModelLoadError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ModelLoadError<E>where
E: UnsafeUnpin,
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