pub enum BindingError {
Show 20 variants
IdentityExhausted,
ForeignRegistry {
kind: &'static str,
},
DeviceMismatch {
subject: &'static str,
expected: DeviceKey,
actual: DeviceKey,
},
UnregisteredProviderContext(ProviderContextIdentity),
ProviderContextInUse(ProviderContextIdentity),
UnregisteredAuthority(AuthorityIdentity),
AuthorityInUse(AuthorityIdentity),
UnregisteredMechanism(MechanismIdentity),
NoSelectedMechanism(DeviceKey),
InactiveMechanism {
mechanism: MechanismIdentity,
lifecycle: MechanismLifecycle,
operation: &'static str,
},
DeviceLost {
device: DeviceKey,
reason: Arc<str>,
},
BindingMismatch {
expected: BindingId,
actual: BindingId,
},
StaleAllocation(AllocationIdentity),
OutstandingViews {
identity: AllocationIdentity,
views: usize,
},
ReleaseQuarantined {
identity: AllocationIdentity,
state: AllocationReleaseState,
reason: QuarantineReason,
retained_bytes: u64,
},
QuarantinedOwnership {
mechanism: MechanismIdentity,
quarantined: usize,
},
ViewOutOfBounds {
offset: usize,
end: usize,
allocation_bytes: usize,
},
LockPoisoned {
operation: &'static str,
},
ContextNotQuiescent {
context: ProviderContextIdentity,
active_operations: usize,
},
Memory(MemoryError),
}Expand description
Binding/registration failure before any caller-provided device action runs.
Variants§
IdentityExhausted
ForeignRegistry
DeviceMismatch
UnregisteredProviderContext(ProviderContextIdentity)
ProviderContextInUse(ProviderContextIdentity)
UnregisteredAuthority(AuthorityIdentity)
AuthorityInUse(AuthorityIdentity)
UnregisteredMechanism(MechanismIdentity)
NoSelectedMechanism(DeviceKey)
InactiveMechanism
DeviceLost
BindingMismatch
StaleAllocation(AllocationIdentity)
OutstandingViews
ReleaseQuarantined
QuarantinedOwnership
ViewOutOfBounds
LockPoisoned
ContextNotQuiescent
Memory(MemoryError)
Trait Implementations§
Source§impl Debug for BindingError
impl Debug for BindingError
Source§impl Display for BindingError
impl Display for BindingError
Source§impl Error for BindingError
impl Error for BindingError
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<MemoryError> for BindingError
impl From<MemoryError> for BindingError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BindingError
impl !UnwindSafe for BindingError
impl Freeze for BindingError
impl Send for BindingError
impl Sync for BindingError
impl Unpin for BindingError
impl UnsafeUnpin for BindingError
Blanket Implementations§
impl<T> BindingResource for T
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