pub enum VNextError {
Show 19 variants
InvalidIdentity {
kind: &'static str,
value: String,
reason: &'static str,
},
UnknownModelFamily {
family_id: String,
},
UnknownExternalModelMetadata {
metadata_id: String,
},
AmbiguousModelFamilyRegistration {
identity_kind: &'static str,
identity: String,
matches: usize,
},
InvalidModelConfig {
family_id: String,
field: String,
reason: String,
},
UnknownWeightLayout {
family_id: String,
layout_id: String,
},
IncompatibleOperationVersion {
node_id: Option<String>,
operation_id: String,
required_major: u16,
required_minor: u16,
available_major: u16,
available_minor: u16,
},
UnsupportedOperation {
node_id: Option<String>,
operation_id: String,
device_id: String,
reason: String,
},
InvalidExecutionPlan {
reason: String,
},
DynamicAdmissionContract {
kind: DynamicAdmissionFaultKind,
reason: String,
},
DeviceCapacityUnavailable(DeviceCapacityPressure),
DynamicPoolResidentUnavailable(DynamicPoolResidentPressure),
DynamicResourceAdmissionRequired {
descriptor_count: usize,
minimum_sequence_bytes: u64,
},
UnsupportedPlanSchema {
expected_major: u16,
expected_minor: u16,
actual_major: u16,
actual_minor: u16,
},
PlanHashMismatch {
expected: String,
actual: String,
},
InvalidResourceTransition {
resource_id: String,
from: &'static str,
action: &'static str,
},
InvalidLeaseTransition {
lease_id: String,
from: &'static str,
action: &'static str,
},
InvalidResolvedModelPlan {
field: String,
reason: String,
},
Serialization {
context: &'static str,
message: String,
},
}Expand description
Structured, fail-closed errors produced by the vNext contracts.
Variants§
InvalidIdentity
UnknownModelFamily
UnknownExternalModelMetadata
AmbiguousModelFamilyRegistration
InvalidModelConfig
UnknownWeightLayout
IncompatibleOperationVersion
Fields
UnsupportedOperation
InvalidExecutionPlan
DynamicAdmissionContract
DynamicResourceAdmissionRequired
UnsupportedPlanSchema
PlanHashMismatch
InvalidResourceTransition
InvalidLeaseTransition
InvalidResolvedModelPlan
Serialization
Trait Implementations§
Source§impl Clone for VNextError
impl Clone for VNextError
Source§fn clone(&self) -> VNextError
fn clone(&self) -> VNextError
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 moreSource§impl Debug for VNextError
impl Debug for VNextError
Source§impl Display for VNextError
impl Display for VNextError
impl Eq for VNextError
Source§impl Error for VNextError
impl Error for VNextError
1.30.0 · 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 PartialEq for VNextError
impl PartialEq for VNextError
impl StructuralPartialEq for VNextError
Auto Trait Implementations§
impl Freeze for VNextError
impl RefUnwindSafe for VNextError
impl Send for VNextError
impl Sync for VNextError
impl Unpin for VNextError
impl UnsafeUnpin for VNextError
impl UnwindSafe for VNextError
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