pub struct WalCorruption {
pub offset: u64,
pub reason: WalCorruptionReasonCode,
}Expand description
Typed WAL corruption details used by all restart paths.
Fields§
§offset: u64Byte offset of the failing record start boundary.
reason: WalCorruptionReasonCodeStable machine-readable reason code.
Implementations§
Source§impl WalCorruption
impl WalCorruption
Sourcepub fn new(offset: usize, reason: WalCorruptionReasonCode) -> Self
pub fn new(offset: usize, reason: WalCorruptionReasonCode) -> Self
Creates typed corruption details at a record-start boundary.
Trait Implementations§
Source§impl Clone for WalCorruption
impl Clone for WalCorruption
Source§fn clone(&self) -> WalCorruption
fn clone(&self) -> WalCorruption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WalCorruption
impl Debug for WalCorruption
Source§impl Display for WalCorruption
impl Display for WalCorruption
Source§impl Error for WalCorruption
impl Error for WalCorruption
1.30.0 · 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<WalCorruption> for WalFsWriterInitError
impl From<WalCorruption> for WalFsWriterInitError
Source§fn from(err: WalCorruption) -> Self
fn from(err: WalCorruption) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WalCorruption
impl PartialEq for WalCorruption
impl Eq for WalCorruption
impl StructuralPartialEq for WalCorruption
Auto Trait Implementations§
impl Freeze for WalCorruption
impl RefUnwindSafe for WalCorruption
impl Send for WalCorruption
impl Sync for WalCorruption
impl Unpin for WalCorruption
impl UnsafeUnpin for WalCorruption
impl UnwindSafe for WalCorruption
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