pub enum FileNodeStoreError {
Io {
path: PathBuf,
source: Error,
},
InvalidKey {
message: String,
},
CidMismatch {
path: PathBuf,
expected: Cid,
actual: Cid,
},
InvalidPath {
path: PathBuf,
message: String,
},
Manifest {
path: PathBuf,
message: String,
},
LockPoisoned(String),
}Expand description
Error type for FileNodeStore.
Variants§
Io
Filesystem I/O failed for the given path.
InvalidKey
A store key was not a 32-byte CID.
CidMismatch
A node object’s bytes do not match its CID key.
Fields
InvalidPath
The store namespace contains an invalid path or filename.
Manifest
A named root manifest could not be encoded or decoded.
Fields
LockPoisoned(String)
A local manifest lock was poisoned.
Trait Implementations§
Source§impl Debug for FileNodeStoreError
impl Debug for FileNodeStoreError
Source§impl Display for FileNodeStoreError
impl Display for FileNodeStoreError
Source§impl Error for FileNodeStoreError
impl Error for FileNodeStoreError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for FileNodeStoreError
impl !UnwindSafe for FileNodeStoreError
impl Freeze for FileNodeStoreError
impl Send for FileNodeStoreError
impl Sync for FileNodeStoreError
impl Unpin for FileNodeStoreError
impl UnsafeUnpin for FileNodeStoreError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more