#[non_exhaustive]pub enum ExecutionPlanLoadError {
Plan(ExecutionPlanError),
MissingParallelRequest,
ParallelTopologyMismatch,
Unsupported(&'static str),
Offload(OffloadError),
Residency(WeightResidencyPolicyError),
Request(NormalizedLoadRequestError),
}Expand description
Portable failure deriving a load request; backend support is checked separately.
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.
Plan(ExecutionPlanError)
The serialized or caller-built plan violates its portable contract.
MissingParallelRequest
Complete rank, wire, invocation and completion policy is required.
ParallelTopologyMismatch
The supplied parallel request does not belong to the plan’s topology.
Unsupported(&'static str)
The plan selected policy not understood by this runtime.
Offload(OffloadError)
An invalid offload policy cannot become a load request.
Residency(WeightResidencyPolicyError)
Invalid ordinary or parameter-bank residency controls.
Request(NormalizedLoadRequestError)
Invalid quantization, drafting, or completion controls.
Trait Implementations§
Source§impl Debug for ExecutionPlanLoadError
impl Debug for ExecutionPlanLoadError
Source§impl Display for ExecutionPlanLoadError
impl Display for ExecutionPlanLoadError
Source§impl Error for ExecutionPlanLoadError
impl Error for ExecutionPlanLoadError
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<ExecutionPlanError> for ExecutionPlanLoadError
impl From<ExecutionPlanError> for ExecutionPlanLoadError
Source§fn from(source: ExecutionPlanError) -> Self
fn from(source: ExecutionPlanError) -> Self
Converts to this type from the input type.
Source§impl From<NormalizedLoadRequestError> for ExecutionPlanLoadError
impl From<NormalizedLoadRequestError> for ExecutionPlanLoadError
Source§fn from(source: NormalizedLoadRequestError) -> Self
fn from(source: NormalizedLoadRequestError) -> Self
Converts to this type from the input type.
Source§impl From<OffloadError> for ExecutionPlanLoadError
impl From<OffloadError> for ExecutionPlanLoadError
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 ExecutionPlanLoadError
impl RefUnwindSafe for ExecutionPlanLoadError
impl Send for ExecutionPlanLoadError
impl Sync for ExecutionPlanLoadError
impl Unpin for ExecutionPlanLoadError
impl UnsafeUnpin for ExecutionPlanLoadError
impl UnwindSafe for ExecutionPlanLoadError
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