pub enum CapabilityError {
Show 23 variants
InvalidTarget,
UnsupportedScope,
UnsupportedTargetKind,
TargetNotShareableApplication,
ReversedStrategyRange,
InvalidBackend,
PermissionDenied,
DeviceUnavailable,
ServerUnavailable,
ClientLibraryUnavailable {
backend: BackendId,
detail: Arc<str>,
},
BackendVersionTooOld {
backend: BackendId,
required: (u32, u32, u32),
observed: (u32, u32, u32),
},
NoSuchProcess,
PidReused,
StaleNativeObject(u32),
RerouteNotPermitted,
PreciseTimingUnqualified,
CapacityExceeded,
UnsupportedFormat,
FormatChangeRejected,
CleanupTimeout,
Stopped,
NotImplemented,
BackendFailure {
backend: BackendId,
code: i32,
},
}Expand description
Cross-platform capability, permission, liveness, and session error.
Variants§
InvalidTarget
UnsupportedScope
UnsupportedTargetKind
ReversedStrategyRange
InvalidBackend
PermissionDenied
BackendVersionTooOld
NoSuchProcess
PidReused
StaleNativeObject(u32)
RerouteNotPermitted
PreciseTimingUnqualified
CapacityExceeded
UnsupportedFormat
FormatChangeRejected
CleanupTimeout
Stopped
NotImplemented
BackendFailure
Implementations§
Source§impl CapabilityError
impl CapabilityError
Sourcepub fn allows_cross_backend_fallback(&self) -> bool
pub fn allows_cross_backend_fallback(&self) -> bool
Returns true when the planner may evaluate the next candidate backend on the same OS
(when allowed by Backends and target.backend().is_none()), and false when planning
must abort immediately (PermissionDenied, PidReused, NoSuchProcess, invalid config, etc.).
Sourcepub fn to_plan_error(&self) -> PlanError
pub fn to_plan_error(&self) -> PlanError
Project a CapabilityError into the portable PlanError summary recorded on
TargetCandidateAttempt entries inside CapturePlanReport.
Trait Implementations§
Source§impl Clone for CapabilityError
impl Clone for CapabilityError
Source§fn clone(&self) -> CapabilityError
fn clone(&self) -> CapabilityError
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 CapabilityError
impl Debug for CapabilityError
Source§impl Display for CapabilityError
impl Display for CapabilityError
impl Eq for CapabilityError
Source§impl Error for CapabilityError
impl Error for CapabilityError
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<ManagerError> for CapabilityError
impl From<ManagerError> for CapabilityError
Source§fn from(err: ManagerError) -> CapabilityError
fn from(err: ManagerError) -> CapabilityError
Converts to this type from the input type.
Source§impl From<PlanError> for CapabilityError
impl From<PlanError> for CapabilityError
Source§fn from(err: PlanError) -> CapabilityError
fn from(err: PlanError) -> CapabilityError
Converts to this type from the input type.
Source§impl PartialEq for CapabilityError
impl PartialEq for CapabilityError
impl StructuralPartialEq for CapabilityError
Auto Trait Implementations§
impl Forget for CapabilityError
impl Freeze for CapabilityError
impl Move for CapabilityError
impl RefUnwindSafe for CapabilityError
impl Send for CapabilityError
impl Sync for CapabilityError
impl Unpin for CapabilityError
impl UnsafeUnpin for CapabilityError
impl UnwindSafe for CapabilityError
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