pub enum CachePoolError {
InvalidLimits(&'static str),
DuplicateManager {
manager: u64,
},
UnknownManager {
manager: u64,
},
BudgetExceeded {
resource: CachePoolResource,
required: u64,
budget: u64,
},
AccountingOverflow {
operation: &'static str,
},
Poisoned,
}Expand description
Backend-neutral aggregate cache ownership failure.
Variants§
InvalidLimits(&'static str)
Aggregate limits had no device or transfer capacity.
DuplicateManager
A manager identity was registered more than once.
UnknownManager
Occupancy was published for an unregistered manager.
BudgetExceeded
Aggregate cache accounting exceeded one finite resource limit.
Fields
§
resource: CachePoolResourceExhausted resource axis.
AccountingOverflow
Checked ownership accounting overflowed.
Poisoned
Shared ownership state was poisoned by a panic.
Trait Implementations§
Source§impl Clone for CachePoolError
impl Clone for CachePoolError
Source§fn clone(&self) -> CachePoolError
fn clone(&self) -> CachePoolError
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 CachePoolError
impl Debug for CachePoolError
Source§impl Display for CachePoolError
impl Display for CachePoolError
impl Eq for CachePoolError
Source§impl Error for CachePoolError
impl Error for CachePoolError
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<CachePoolError> for CacheResidencyConfigurationError
impl From<CachePoolError> for CacheResidencyConfigurationError
Source§fn from(source: CachePoolError) -> Self
fn from(source: CachePoolError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CachePoolError
impl PartialEq for CachePoolError
impl StructuralPartialEq for CachePoolError
Auto Trait Implementations§
impl Freeze for CachePoolError
impl RefUnwindSafe for CachePoolError
impl Send for CachePoolError
impl Sync for CachePoolError
impl Unpin for CachePoolError
impl UnsafeUnpin for CachePoolError
impl UnwindSafe for CachePoolError
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