#[non_exhaustive]pub enum LogError {
Io(Error),
Serialize(Error),
NotARegularFile(Utf8PathBuf),
}Expand description
Errors emitted by the provenance log writer. Callers MUST treat any variant as a fail-closed signal and abort the surrounding fetch.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
I/O error opening, reading, writing, or syncing the log file. Includes
recovery-time corruption detection where the synthetic message is
"corrupted log at line N: …".
Serialize(Error)
Serialization of a row to canonical JSON failed.
NotARegularFile(Utf8PathBuf)
Path supplied to ProvenanceLog::open exists but is not a regular
file (e.g. a directory or symlink).
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()
Auto Trait Implementations§
impl Freeze for LogError
impl !RefUnwindSafe for LogError
impl Send for LogError
impl Sync for LogError
impl Unpin for LogError
impl UnsafeUnpin for LogError
impl !UnwindSafe 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