pub enum LogError {
Io(Error),
Corrupt,
Native(String),
AsyncOnly,
Encrypted,
Unencrypted,
MissingKeyEpoch(u32),
Crypt(CryptError),
}Expand description
Log errors.
Variants§
Io(Error)
Filesystem error.
Corrupt
Malformed or incomplete log data.
Native(String)
Native store backend failure.
AsyncOnly
The operation requires the asynchronous log interface.
Encrypted
The log holds encrypted records and this process has no storage key.
Unencrypted
A storage key is configured but the log holds cleartext records. Encryption is fixed at database creation, so this is a misconfigured process pointed at somebody else’s log, not a database to upgrade.
MissingKeyEpoch(u32)
A record names a key epoch this process cannot resolve.
Crypt(CryptError)
Encryption or authentication of a record payload failed.
Trait Implementations§
Source§impl Error for LogError
impl Error for LogError
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<CryptError> for LogError
impl From<CryptError> for LogError
Source§fn from(source: CryptError) -> Self
fn from(source: CryptError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LogError
impl !UnwindSafe for LogError
impl Freeze for LogError
impl Send for LogError
impl Sync for LogError
impl Unpin for LogError
impl UnsafeUnpin for LogError
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