pub struct WalSegmentMeta {
pub key: String,
pub lsn_start: u64,
pub lsn_end: u64,
pub created_at: u64,
pub size_bytes: u64,
pub sha256: Option<String>,
}Expand description
Metadata about an archived WAL segment.
Fields§
§key: StringRemote key (e.g., “wal/000000000008-000000050432.wal”)
lsn_start: u64Starting LSN of this segment
lsn_end: u64Ending LSN of this segment
created_at: u64When this segment was archived (unix ms)
size_bytes: u64Size in bytes
sha256: Option<String>Hex-encoded SHA-256 of the uploaded payload bytes (PLAN.md
Phase 2.4). Restore recomputes the digest after download and
fails closed on mismatch — same fail-closed contract as
SnapshotManifest::snapshot_sha256. None for legacy
segments archived before this field was introduced; restore
tolerates absence with a warning.
Trait Implementations§
Source§impl Clone for WalSegmentMeta
impl Clone for WalSegmentMeta
Source§fn clone(&self) -> WalSegmentMeta
fn clone(&self) -> WalSegmentMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WalSegmentMeta
impl RefUnwindSafe for WalSegmentMeta
impl Send for WalSegmentMeta
impl Sync for WalSegmentMeta
impl Unpin for WalSegmentMeta
impl UnsafeUnpin for WalSegmentMeta
impl UnwindSafe for WalSegmentMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request