#[non_exhaustive]pub enum WeightResidencyPolicyError {
ZeroHostLookahead,
ZeroQueueCapacity,
HostDisabledControls,
ZeroParameterBankScratchLimit,
ZeroParameterBankPrefillTarget,
ParameterBankPrefillTargetExceedsScratch {
target_bytes: u64,
scratch_bytes: u64,
},
Offload(OffloadError),
}Expand description
Invalid backend-neutral immutable-weight residency policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ZeroHostLookahead
Enabled host caching needs a protected current unit.
ZeroQueueCapacity
Enabled background work requires bounded capacity.
HostDisabledControls
Direct-to-device mode cannot configure host-only controls.
ZeroParameterBankScratchLimit
Parameter-bank scratch accounting was disabled with a zero limit.
ZeroParameterBankPrefillTarget
Parameter-bank prefill chunking was disabled with a zero target.
ParameterBankPrefillTargetExceedsScratch
The parameter-bank prefill target exceeded the hard scratch bound.
Fields
Offload(OffloadError)
The derived offload configuration was invalid.
Trait Implementations§
Source§impl Debug for WeightResidencyPolicyError
impl Debug for WeightResidencyPolicyError
Source§impl Display for WeightResidencyPolicyError
impl Display for WeightResidencyPolicyError
Source§impl Error for WeightResidencyPolicyError
impl Error for WeightResidencyPolicyError
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<OffloadError> for WeightResidencyPolicyError
impl From<OffloadError> for WeightResidencyPolicyError
Source§fn from(source: OffloadError) -> Self
fn from(source: OffloadError) -> Self
Converts to this type from the input type.
Source§impl From<WeightResidencyPolicyError> for ExecutionPlanLoadError
impl From<WeightResidencyPolicyError> for ExecutionPlanLoadError
Source§fn from(source: WeightResidencyPolicyError) -> Self
fn from(source: WeightResidencyPolicyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WeightResidencyPolicyError
impl RefUnwindSafe for WeightResidencyPolicyError
impl Send for WeightResidencyPolicyError
impl Sync for WeightResidencyPolicyError
impl Unpin for WeightResidencyPolicyError
impl UnsafeUnpin for WeightResidencyPolicyError
impl UnwindSafe for WeightResidencyPolicyError
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