pub enum StorePathError {
DanglingEscape,
EmptyPath,
}Expand description
Why a set of segments is not a path.
Variants§
DanglingEscape
An escape that escapes nothing. No key this type wrote holds one, and reading it leniently would let two different keys name one path.
EmptyPath
No levels at all.
A path is built from a list, and a list computed at run time can come out empty - a filter that removed everything, a split of an empty string. Such a list names the whole store, and a write through it would replace all of it in code that never mentions the root.
StorePath::root is how to say it on purpose.
Trait Implementations§
Source§impl Clone for StorePathError
impl Clone for StorePathError
Source§impl Debug for StorePathError
impl Debug for StorePathError
Source§impl Display for StorePathError
impl Display for StorePathError
impl Eq for StorePathError
Source§impl Error for StorePathError
impl Error for StorePathError
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<StorePathError> for WriteValue
impl From<StorePathError> for WriteValue
Source§fn from(why: StorePathError) -> Self
fn from(why: StorePathError) -> Self
Converts to this type from the input type.
Source§impl IntoStorageReport for StorePathError
impl IntoStorageReport for StorePathError
fn into_report(self) -> Report<StorageError>
Source§impl PartialEq for StorePathError
impl PartialEq for StorePathError
impl StructuralPartialEq for StorePathError
Auto Trait Implementations§
impl Freeze for StorePathError
impl RefUnwindSafe for StorePathError
impl Send for StorePathError
impl Sync for StorePathError
impl Unpin for StorePathError
impl UnsafeUnpin for StorePathError
impl UnwindSafe for StorePathError
Blanket Implementations§
impl<T> Attachment for T
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