pub enum ModelLoadErrorClass {
Gated,
Oom,
Dependency,
NotFound,
Network,
Unknown,
}Expand description
Why a model failed to load, as classified by the server.
Variants§
Gated
Repository requires accepting a licence or supplying a token.
Oom
Out of device memory while loading.
Dependency
A required runtime dependency is missing.
NotFound
The model id does not exist.
Network
Transient network failure while fetching weights.
Unknown
Anything else.
Trait Implementations§
Source§impl Clone for ModelLoadErrorClass
impl Clone for ModelLoadErrorClass
Source§fn clone(&self) -> ModelLoadErrorClass
fn clone(&self) -> ModelLoadErrorClass
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 moreimpl Copy for ModelLoadErrorClass
Source§impl Debug for ModelLoadErrorClass
impl Debug for ModelLoadErrorClass
impl Eq for ModelLoadErrorClass
Source§impl PartialEq for ModelLoadErrorClass
impl PartialEq for ModelLoadErrorClass
impl StructuralPartialEq for ModelLoadErrorClass
Auto Trait Implementations§
impl Freeze for ModelLoadErrorClass
impl RefUnwindSafe for ModelLoadErrorClass
impl Send for ModelLoadErrorClass
impl Sync for ModelLoadErrorClass
impl Unpin for ModelLoadErrorClass
impl UnsafeUnpin for ModelLoadErrorClass
impl UnwindSafe for ModelLoadErrorClass
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.