#[non_exhaustive]pub enum ReplayLogError {
Io {
op: &'static str,
path: Arc<str>,
source: Error,
},
HeaderMismatch {
path: Arc<str>,
},
ZeroCapacity,
CapacityOverflow {
count: u64,
max: u64,
},
}Expand description
Errors surfaced by the replay-log surface. Every variant carries
an actionable Fix: hint.
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
I/O syscall on the log file failed.
Fields
HeaderMismatch
Log header magic or version mismatch.
ZeroCapacity
Capacity of 0 is rejected - a zero-capacity log never accepts writes.
CapacityOverflow
Record capacity exceeds the replay-log bound. Capping here prevents malformed log headers from forcing host OOM during replay and keeps record offsets within checked arithmetic.
Trait Implementations§
Source§impl Debug for ReplayLogError
impl Debug for ReplayLogError
Source§impl Display for ReplayLogError
impl Display for ReplayLogError
Source§impl Error for ReplayLogError
impl Error for ReplayLogError
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<ReplayLogError> for PipelineError
Let callers bridge ReplayLogError into the unified PipelineError
surface when driving the log from the megakernel pump loop.
impl From<ReplayLogError> for PipelineError
Let callers bridge ReplayLogError into the unified PipelineError surface when driving the log from the megakernel pump loop.
Source§fn from(err: ReplayLogError) -> Self
fn from(err: ReplayLogError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReplayLogError
impl !RefUnwindSafe for ReplayLogError
impl Send for ReplayLogError
impl Sync for ReplayLogError
impl Unpin for ReplayLogError
impl UnsafeUnpin for ReplayLogError
impl !UnwindSafe for ReplayLogError
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