pub struct ReplayWindow {
pub epoch: JournalEpoch,
pub earliest: u64,
pub next: u64,
pub gap_after: Option<u64>,
}Expand description
The offsets a view can currently serve.
earliest is the oldest retained offset, so a cursor below it has fallen
out of the window and cannot be honoured. next is the offset the next
append will take, so a consumer at next - 1 is fully caught up.
Fields§
§epoch: JournalEpoch§earliest: u64§next: u64§gap_after: Option<u64>When set, records after this offset were lost before the tape resumed: the stream restarted live rather than from the snapshot’s watermark. Replay across this boundary is refused rather than presented as continuous.
Implementations§
Source§impl ReplayWindow
impl ReplayWindow
Trait Implementations§
Source§impl Clone for ReplayWindow
impl Clone for ReplayWindow
Source§impl Debug for ReplayWindow
impl Debug for ReplayWindow
Source§impl<'de> Deserialize<'de> for ReplayWindow
impl<'de> Deserialize<'de> for ReplayWindow
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 ReplayWindow
Source§impl PartialEq for ReplayWindow
impl PartialEq for ReplayWindow
Source§impl Serialize for ReplayWindow
impl Serialize for ReplayWindow
impl StructuralPartialEq for ReplayWindow
Auto Trait Implementations§
impl Freeze for ReplayWindow
impl RefUnwindSafe for ReplayWindow
impl Send for ReplayWindow
impl Sync for ReplayWindow
impl Unpin for ReplayWindow
impl UnsafeUnpin for ReplayWindow
impl UnwindSafe for ReplayWindow
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.