pub enum Error {
Io(Error),
Corrupt {
path: String,
reason: String,
},
Format(String),
Locked(String),
EntryTooLong(usize),
OutOfRange(String),
Signature(String),
}Expand description
Why a store operation, a tile read or a note check did not go through.
Variants§
Io(Error)
The store could not be read or written.
Corrupt
Bytes in the store do not agree with the tree they claim to be part of, or are not in the shape the layout gives them.
Format(String)
Text (a note, a checkpoint, a key, a manifest) is not in its format.
Locked(String)
Another writer holds the log; the path is the lock file.
EntryTooLong(usize)
An entry longer than a bundle can length-prefix (65535 bytes).
OutOfRange(String)
A tile, hash or entry index that the tree of this size does not have.
Signature(String)
A signature on a note did not check, or no trusted key signed it.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Freeze 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