pub enum ResidencyDeclarationError {
Show 13 variants
InvalidBindingName,
InvalidCheckpointKey {
name: String,
},
EmptyRecipeSources {
name: String,
},
InvalidQuantizationCompanions {
name: String,
scales: String,
biases: String,
},
ZeroSizedBinding {
name: String,
},
EmptyUnit {
id: OffloadUnitId,
},
DuplicateBindingName {
id: OffloadUnitId,
name: String,
},
DuplicateLogicalBinding {
name: String,
},
UnknownBindingAliasOwner {
alias: String,
owner: String,
},
AmbiguousBindingAliasOwner {
alias: String,
owner: String,
},
BindingAliasCycle {
name: String,
},
BindingAliasByteMismatch {
alias: String,
owner: String,
alias_bytes: u64,
owner_bytes: u64,
},
AliasHasPhysicalSource {
name: String,
},
}Expand description
Invalid backend-neutral residency declaration.
Variants§
InvalidBindingName
A binding name was empty.
InvalidCheckpointKey
A binding checkpoint key was empty.
EmptyRecipeSources
A recipe had no physical source.
InvalidQuantizationCompanions
Load-time quantization companion names collide with one another.
Fields
ZeroSizedBinding
A binding declared no bytes.
EmptyUnit
A unit had no bindings.
Fields
§
id: OffloadUnitIdUnit identifier.
DuplicateBindingName
Two bindings in one unit had the same local name.
DuplicateLogicalBinding
A general binding list repeated one logical identity.
UnknownBindingAliasOwner
An alias named no binding in its atomic unit.
AmbiguousBindingAliasOwner
An alias destination did not identify one unique global owner.
BindingAliasCycle
Alias declarations formed a cycle.
BindingAliasByteMismatch
Alias and resolved owner disagreed on materialized byte geometry.
Fields
AliasHasPhysicalSource
An alias was incorrectly rewritten with a physical source.
Trait Implementations§
Source§impl Clone for ResidencyDeclarationError
impl Clone for ResidencyDeclarationError
Source§fn clone(&self) -> ResidencyDeclarationError
fn clone(&self) -> ResidencyDeclarationError
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 ResidencyDeclarationError
impl Debug for ResidencyDeclarationError
Source§impl Display for ResidencyDeclarationError
impl Display for ResidencyDeclarationError
impl Eq for ResidencyDeclarationError
Source§impl Error for ResidencyDeclarationError
impl Error for ResidencyDeclarationError
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 From<ResidencyDeclarationError> for RecipeBindingError
impl From<ResidencyDeclarationError> for RecipeBindingError
Source§fn from(source: ResidencyDeclarationError) -> Self
fn from(source: ResidencyDeclarationError) -> Self
Converts to this type from the input type.
Source§impl<E> From<ResidencyDeclarationError> for ParameterOrchestrationError<E>
impl<E> From<ResidencyDeclarationError> for ParameterOrchestrationError<E>
Source§fn from(source: ResidencyDeclarationError) -> Self
fn from(source: ResidencyDeclarationError) -> Self
Converts to this type from the input type.
Source§impl From<ResidencyDeclarationError> for WeightBindingSelectionError
impl From<ResidencyDeclarationError> for WeightBindingSelectionError
Source§fn from(source: ResidencyDeclarationError) -> Self
fn from(source: ResidencyDeclarationError) -> Self
Converts to this type from the input type.
Source§impl From<ResidencyDeclarationError> for ResidencyControllerError
impl From<ResidencyDeclarationError> for ResidencyControllerError
Source§fn from(source: ResidencyDeclarationError) -> Self
fn from(source: ResidencyDeclarationError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ResidencyDeclarationError
Auto Trait Implementations§
impl Freeze for ResidencyDeclarationError
impl RefUnwindSafe for ResidencyDeclarationError
impl Send for ResidencyDeclarationError
impl Sync for ResidencyDeclarationError
impl Unpin for ResidencyDeclarationError
impl UnsafeUnpin for ResidencyDeclarationError
impl UnwindSafe for ResidencyDeclarationError
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