pub enum LogError {
Io(Error),
LogOverflow,
TruncateBeyondEnd {
requested: u64,
current: u64,
},
IncompatibleFormat {
reason: String,
},
}Expand description
Errors produced by CanonicalLog.
Variants§
Io(Error)
Underlying filesystem / I/O error.
LogOverflow
The log’s byte length would exceed u64::MAX. A single-workspace
log is not expected to hit this — included for completeness.
TruncateBeyondEnd
Truncation target is beyond the current log length.
IncompatibleFormat
The file at the supplied path is not a recognizable Mimir canonical log. Either the magic prefix doesn’t match, the declared format version isn’t supported by this build, or the file is too short to carry the 8-byte header. Surfaced before any truncation or recovery logic so misrouted-path opens cannot silently destroy data.
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<LogError> for StoreError
impl From<LogError> for StoreError
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