pub struct SnapshotLease {
pub snapshot_id: SnapshotId,
pub boundary_sequence: Sequence,
pub retained_from: Sequence,
pub expires_at_unix_ms: u64,
}Expand description
Server guarantee that the journal delta after a snapshot boundary remains readable.
Fields§
§snapshot_id: SnapshotId§boundary_sequence: Sequence§retained_from: Sequence§expires_at_unix_ms: u64Implementations§
Source§impl SnapshotLease
impl SnapshotLease
Sourcepub fn verify(
self,
snapshot_id: SnapshotId,
boundary: SnapshotBoundary,
now_unix_ms: u64,
) -> Result<(), BootstrapError>
pub fn verify( self, snapshot_id: SnapshotId, boundary: SnapshotBoundary, now_unix_ms: u64, ) -> Result<(), BootstrapError>
Verifies identity, time, and retained journal coverage.
§Errors
Rejects expired leases or a journal floor beyond the first required delta.
Trait Implementations§
Source§impl Clone for SnapshotLease
impl Clone for SnapshotLease
Source§fn clone(&self) -> SnapshotLease
fn clone(&self) -> SnapshotLease
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 moreimpl Copy for SnapshotLease
Source§impl Debug for SnapshotLease
impl Debug for SnapshotLease
Source§impl<'de> Deserialize<'de> for SnapshotLease
impl<'de> Deserialize<'de> for SnapshotLease
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 SnapshotLease
Source§impl PartialEq for SnapshotLease
impl PartialEq for SnapshotLease
Source§impl Serialize for SnapshotLease
impl Serialize for SnapshotLease
impl StructuralPartialEq for SnapshotLease
Auto Trait Implementations§
impl Freeze for SnapshotLease
impl RefUnwindSafe for SnapshotLease
impl Send for SnapshotLease
impl Sync for SnapshotLease
impl Unpin for SnapshotLease
impl UnsafeUnpin for SnapshotLease
impl UnwindSafe for SnapshotLease
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