pub struct WalSegmentPointer {
pub segment_id: WalSegmentId,
pub start_seq: ChangeSeq,
pub end_seq: ChangeSeq,
pub payload_checksum: String,
}Expand description
Links one accepted WAL segment identity to its verified sequence range.
Pointers in immutable WAL segments accept unknown fields. The mutable head
uses a strict decoder for the same shape so a rewrite cannot discard data.
Both decoders reject a pointer whose segment_id does not encode its
start_seq.
See WAL segment rules.
Fields§
§segment_id: WalSegmentIdSegment identity used to derive the immutable object key and expected to agree with the decoded payload.
start_seq: ChangeSeqFirst logical commit sequence carried by the segment.
end_seq: ChangeSeqFinal logical commit sequence carried by the segment.
payload_checksum: StringChecksum of the referenced segment’s payload bytes, in sha256:<hex>
form. Must equal the payload_checksum in the referenced envelope.
Trait Implementations§
Source§impl Clone for WalSegmentPointer
impl Clone for WalSegmentPointer
Source§fn clone(&self) -> WalSegmentPointer
fn clone(&self) -> WalSegmentPointer
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 moreSource§impl Debug for WalSegmentPointer
impl Debug for WalSegmentPointer
Source§impl<'de> Deserialize<'de> for WalSegmentPointer
impl<'de> Deserialize<'de> for WalSegmentPointer
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>,
Decodes a pointer and verifies that its id matches start_seq.
impl Eq for WalSegmentPointer
Source§impl PartialEq for WalSegmentPointer
impl PartialEq for WalSegmentPointer
Source§impl Serialize for WalSegmentPointer
impl Serialize for WalSegmentPointer
impl StructuralPartialEq for WalSegmentPointer
Auto Trait Implementations§
impl Freeze for WalSegmentPointer
impl RefUnwindSafe for WalSegmentPointer
impl Send for WalSegmentPointer
impl Sync for WalSegmentPointer
impl Unpin for WalSegmentPointer
impl UnsafeUnpin for WalSegmentPointer
impl UnwindSafe for WalSegmentPointer
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