pub enum ResidencyControllerError {
Declaration(ResidencyDeclarationError),
DuplicateUnitDefinition {
id: OffloadUnitId,
},
MissingUnitDefinition {
id: OffloadUnitId,
},
UnexpectedUnitDefinition {
id: OffloadUnitId,
},
UnitByteMismatch {
id: OffloadUnitId,
planned_bytes: u64,
actual_bytes: u64,
},
BindingByteMismatch {
id: OffloadUnitId,
binding: String,
expected_bytes: u64,
actual_bytes: u64,
},
Recipe {
binding: String,
source: RecipeError,
},
ArithmeticOverflow {
context: &'static str,
},
}Expand description
Failure while validating a residency control plane.
Variants§
Declaration(ResidencyDeclarationError)
A binding alias graph was invalid.
DuplicateUnitDefinition
More than one definition used the same plan identifier.
Fields
§
id: OffloadUnitIdDuplicated identifier.
MissingUnitDefinition
The plan had no matching unit definition.
Fields
§
id: OffloadUnitIdMissing identifier.
UnexpectedUnitDefinition
A definition had no matching plan entry.
Fields
§
id: OffloadUnitIdUnexpected identifier.
UnitByteMismatch
Binding sizes did not sum to the plan’s unit size.
Fields
§
id: OffloadUnitIdUnit identifier.
BindingByteMismatch
A binding’s selected checkpoint size contradicted its declaration.
Fields
§
id: OffloadUnitIdUnit identifier.
Recipe
A derived-weight recipe was invalid.
ArithmeticOverflow
Checked byte arithmetic overflowed.
Trait Implementations§
Source§impl Debug for ResidencyControllerError
impl Debug for ResidencyControllerError
Source§impl Display for ResidencyControllerError
impl Display for ResidencyControllerError
Source§impl Error for ResidencyControllerError
impl Error for ResidencyControllerError
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 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.
Auto Trait Implementations§
impl Freeze for ResidencyControllerError
impl RefUnwindSafe for ResidencyControllerError
impl Send for ResidencyControllerError
impl Sync for ResidencyControllerError
impl Unpin for ResidencyControllerError
impl UnsafeUnpin for ResidencyControllerError
impl UnwindSafe for ResidencyControllerError
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