pub enum ResidencyError {
LabelCountMismatch {
labels: usize,
num_layers: usize,
},
UnpinnedLayerNotOnCpu {
layers: Vec<u32>,
},
PrefillOverlapWithUnpinned {
layers: Vec<u32>,
},
SlotRemapOnUnpinnedLayer {
layer: u32,
},
}Expand description
A residency configuration that cannot be served, refused before the banks are attached.
Variants§
LabelCountMismatch
The label list does not describe this model.
UnpinnedLayerNotOnCpu
Layers with no device address that nothing routed to the CPU.
PrefillOverlapWithUnpinned
Prefill overlap asked for alongside a layer that cannot feed it.
SlotRemapOnUnpinnedLayer
A slot-remapping copy staged against a layer with no device alias for its host rows.
Trait Implementations§
Source§impl Clone for ResidencyError
impl Clone for ResidencyError
Source§fn clone(&self) -> ResidencyError
fn clone(&self) -> ResidencyError
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 ResidencyError
impl Debug for ResidencyError
Source§impl Display for ResidencyError
impl Display for ResidencyError
impl Eq for ResidencyError
Source§impl Error for ResidencyError
impl Error for ResidencyError
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<ResidencyError> for SlotFault
impl From<ResidencyError> for SlotFault
Source§fn from(e: ResidencyError) -> Self
fn from(e: ResidencyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResidencyError
impl PartialEq for ResidencyError
impl StructuralPartialEq for ResidencyError
Auto Trait Implementations§
impl Freeze for ResidencyError
impl RefUnwindSafe for ResidencyError
impl Send for ResidencyError
impl Sync for ResidencyError
impl Unpin for ResidencyError
impl UnsafeUnpin for ResidencyError
impl UnwindSafe for ResidencyError
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more