pub enum CheckpointError {
Json {
file: &'static str,
detail: String,
},
UnknownModelType {
model_type: String,
served: String,
},
Map(ConfigMapError),
Quant(String),
Precision(PrecisionError),
Circuit(CircuitError),
}Expand description
2026-09-30: Why a checkpoint has no circuit.
Variants§
Json
2026-09-30: A file is not the JSON it should be.
Fields
UnknownModelType
2026-09-30: No config map serves this model_type.
Fields
Map(ConfigMapError)
2026-09-30: The config does not map.
Quant(String)
2026-09-30: The quantization metadata is malformed, or declares a format the circuit has no edge or weight format for.
Precision(PrecisionError)
2026-09-30: A serving-policy name is unknown.
Circuit(CircuitError)
2026-09-30: The circuit does not instantiate under the mapped shape.
Trait Implementations§
Source§impl Clone for CheckpointError
impl Clone for CheckpointError
Source§fn clone(&self) -> CheckpointError
fn clone(&self) -> CheckpointError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointError
impl Debug for CheckpointError
Source§impl Display for CheckpointError
impl Display for CheckpointError
Source§impl Error for CheckpointError
impl Error for CheckpointError
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<CircuitError> for CheckpointError
impl From<CircuitError> for CheckpointError
Source§fn from(source: CircuitError) -> Self
fn from(source: CircuitError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigMapError> for CheckpointError
impl From<ConfigMapError> for CheckpointError
Source§fn from(source: ConfigMapError) -> Self
fn from(source: ConfigMapError) -> Self
Converts to this type from the input type.
Source§impl From<PrecisionError> for CheckpointError
impl From<PrecisionError> for CheckpointError
Source§fn from(source: PrecisionError) -> Self
fn from(source: PrecisionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CheckpointError
impl PartialEq for CheckpointError
impl Eq for CheckpointError
impl StructuralPartialEq for CheckpointError
Auto Trait Implementations§
impl Freeze for CheckpointError
impl RefUnwindSafe for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnwindSafe for CheckpointError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.