pub struct WalSegmentPayload {
pub namespace_id: NamespaceId,
pub wal_no: WalNo,
pub next_inode_id: InodeId,
pub writer_epoch: WriterEpoch,
pub base_head_seq: ChangeSeq,
pub start_seq: ChangeSeq,
pub end_seq: ChangeSeq,
pub records: Vec<WalCommitPayload>,
}Expand description
Carries the namespace identity, numbered range, and commits stored in one WAL object.
See WAL segment rules.
Fields§
§namespace_id: NamespaceIdNamespace this segment belongs to; recovery rejects cross-namespace content.
wal_no: WalNoContiguous object number checked against the key.
next_inode_id: InodeIdAllocation high-water mark after this segment.
writer_epoch: WriterEpochFencing epoch of the writer that proposed this segment.
base_head_seq: ChangeSeqHead sequence the writer materialized against before adding these records.
start_seq: ChangeSeqSequence of the first record, or the unchanged head sequence for a fence.
end_seq: ChangeSeqVisible sequence after this segment, unchanged for a fence.
records: Vec<WalCommitPayload>Logical commits in contiguous ascending sequence order.
Trait Implementations§
Source§impl Clone for WalSegmentPayload
impl Clone for WalSegmentPayload
Source§impl Debug for WalSegmentPayload
impl Debug for WalSegmentPayload
Source§impl<'de> Deserialize<'de> for WalSegmentPayload
impl<'de> Deserialize<'de> for WalSegmentPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WalSegmentPayload
Source§impl PartialEq for WalSegmentPayload
impl PartialEq for WalSegmentPayload
Source§impl Serialize for WalSegmentPayload
impl Serialize for WalSegmentPayload
impl StructuralPartialEq for WalSegmentPayload
Auto Trait Implementations§
impl Freeze for WalSegmentPayload
impl RefUnwindSafe for WalSegmentPayload
impl Send for WalSegmentPayload
impl Sync for WalSegmentPayload
impl Unpin for WalSegmentPayload
impl UnsafeUnpin for WalSegmentPayload
impl UnwindSafe for WalSegmentPayload
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