pub struct SizeError {
pub kind: SizeErrorKind,
/* private fields */
}Expand description
An error from a CacheTier::len operation.
Use the kind field to distinguish between tiers that don’t
support size reporting (Unsupported) and
actual storage failures (Failed).
Fields§
§kind: SizeErrorKindThe kind of error that occurred.
Implementations§
Source§impl SizeError
impl SizeError
Sourcepub fn unsupported() -> Self
pub fn unsupported() -> Self
Creates a new SizeError indicating that the tier does not support size reporting.
Trait Implementations§
Source§impl Enrichable for SizeError
impl Enrichable for SizeError
Source§fn add_enrichment(&mut self, entry: EnrichmentEntry)
fn add_enrichment(&mut self, entry: EnrichmentEntry)
Adds enrichment information to the error. Read more
Source§impl Error for SizeError
impl Error for SizeError
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 ErrorExt for SizeError
impl ErrorExt for SizeError
Source§impl From<Infallible> for SizeError
impl From<Infallible> for SizeError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SizeError
impl !UnwindSafe for SizeError
impl Freeze for SizeError
impl Send for SizeError
impl Sync for SizeError
impl Unpin for SizeError
impl UnsafeUnpin for SizeError
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