pub enum KeyError {
DirSegmentNotUtf8 {
segment: usize,
},
RootNotRemovable,
}Expand description
A directory path failed validation.
Both variants are input errors: the operation is just as wrong on a rerun, so neither is retryable.
Variants§
DirSegmentNotUtf8
Segment segment is not valid UTF-8.
Directory segments are the trait-level UTF-8 contract (FDB’s layer
takes &[String] paths; the flat backends enforce the same for
uniformity). Keys are not subject to it.
RootNotRemovable
A directory-removal operation was applied to the root [].
Trait Implementations§
impl Eq for KeyError
Source§impl Error for KeyError
impl Error for KeyError
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 RetryableStorageError for KeyError
impl RetryableStorageError for KeyError
Source§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns
true when the caller may safely rerun the entire logical
operation from the beginning. Read moreimpl StructuralPartialEq for KeyError
Auto Trait Implementations§
impl Forget for KeyError
impl Freeze for KeyError
impl Move for KeyError
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnsafeUnpin for KeyError
impl UnwindSafe for KeyError
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