pub enum DirectoryError {
ArithmeticOverflow,
Budget,
Invalid(&'static str),
AlreadyOpen,
Bounds,
AlreadyClaimed,
Missing,
Growth,
Poisoned,
}Expand description
Error
Admission, bounds and custody failures from the governed allocation directory.
Variants§
ArithmeticOverflow
Logical page count overflowed before any backing access.
Budget
The requested allocation exceeds the configured directory resource budget.
Invalid(&'static str)
Persisted metadata or allocation geometry failed validation.
AlreadyOpen
An exclusive lease for the allocation already exists.
Bounds
The requested byte range lies outside the allocation.
AlreadyClaimed
Another owner retains custody of the backing.
Missing
The requested opaque identity has no directory entry.
Growth
Physical backing growth failed before the requested capacity was available.
Poisoned
Earlier interrupted backing IO invalidated this owner’s in-memory authority.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<Error> for RuntimeConstructionError
impl From<Error> for RuntimeConstructionError
Source§fn from(source: DirectoryError) -> Self
fn from(source: DirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for RuntimeOpenError
impl From<Error> for RuntimeOpenError
Source§fn from(source: DirectoryError) -> Self
fn from(source: DirectoryError) -> Self
Converts to this type from the input type.
Source§impl<E> From<Error> for RuntimeBootstrapError<E>
impl<E> From<Error> for RuntimeBootstrapError<E>
Source§fn from(source: DirectoryError) -> Self
fn from(source: DirectoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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