pub enum ResourceResidencyError {
Show 21 variants
ZeroIdentity,
DuplicateOrEmptyName {
kind: &'static str,
name: String,
},
ImmutableResourceDigestMismatch {
name: String,
actual: [u8; 32],
expected: [u8; 32],
},
ByteLengthOverflow {
context: String,
},
OutOfMemory {
context: &'static str,
used: u64,
requested: u64,
budget: u64,
},
Backend {
operation: &'static str,
detail: String,
},
Rollback {
operation: &'static str,
detail: String,
cleanup: String,
},
Release {
context: &'static str,
details: String,
},
WarmResourceSetMismatch,
ResourceSetNotResident {
key: ResourceSetKey,
},
ResourceSetInUse {
key: ResourceSetKey,
active_states: u64,
},
StateIdentityOverflow,
StateGenerationOverflow {
state: StateId,
},
StateLeaseNotFound {
state: StateId,
},
StaleStateLease {
state: StateId,
expected_generation: u64,
actual_generation: u64,
},
StateNotFound {
state: StateId,
name: String,
},
ZeroStateBytes {
name: String,
},
ImmutableResourceNotFound {
key: ResourceSetKey,
name: String,
},
ArtifactNotFound {
key: ResourceSetKey,
name: String,
},
AccountingUnderflow,
LockPoisoned,
}Expand description
Resource residency admission or lifecycle failure.
Variants§
ZeroIdentity
A content or artifact identity is all zeroes.
DuplicateOrEmptyName
A request repeats or omits a stable name.
ImmutableResourceDigestMismatch
Immutable bytes disagree with their trusted digest.
Fields
ByteLengthOverflow
Byte arithmetic exceeded the supported domain.
OutOfMemory
Admission exceeds the explicit manager budget.
Fields
Backend
Backend resource operation failed.
Rollback
Admission failed and one or more rollback frees also failed.
Fields
Release
Releasing one or more unreachable resources failed.
WarmResourceSetMismatch
A warm request disagrees with its already resident key.
ResourceSetNotResident
Resource-set key is absent.
Fields
key: ResourceSetKeyMissing resource-set key.
ResourceSetInUse
Resource set still owns live states.
StateIdentityOverflow
Mutable-state identity space is exhausted.
StateGenerationOverflow
Reset generation space is exhausted.
StateLeaseNotFound
State lease is absent, cancelled, or already finished.
StaleStateLease
Lease predates the latest reset.
Fields
StateNotFound
Mutable state name is absent.
ZeroStateBytes
Mutable state cannot have a zero-byte allocation.
ImmutableResourceNotFound
Immutable resource name is absent.
ArtifactNotFound
Named artifact instance is absent.
AccountingUnderflow
Internal counters would underflow.
LockPoisoned
Another thread panicked while holding residency state.
Trait Implementations§
Source§impl Clone for ResourceResidencyError
impl Clone for ResourceResidencyError
Source§fn clone(&self) -> ResourceResidencyError
fn clone(&self) -> ResourceResidencyError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceResidencyError
impl Debug for ResourceResidencyError
Source§impl Display for ResourceResidencyError
impl Display for ResourceResidencyError
impl Eq for ResourceResidencyError
Source§impl Error for ResourceResidencyError
impl Error for ResourceResidencyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for ResourceResidencyError
impl PartialEq for ResourceResidencyError
impl StructuralPartialEq for ResourceResidencyError
Auto Trait Implementations§
impl Freeze for ResourceResidencyError
impl RefUnwindSafe for ResourceResidencyError
impl Send for ResourceResidencyError
impl Sync for ResourceResidencyError
impl Unpin for ResourceResidencyError
impl UnsafeUnpin for ResourceResidencyError
impl UnwindSafe for ResourceResidencyError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.