pub struct NullWatermarkStore;Expand description
No-op watermark store — provides backward-compatible in-memory-only behavior.
All loads return defaults; all saves are silently discarded.
Trait Implementations§
Source§impl WatermarkStore for NullWatermarkStore
impl WatermarkStore for NullWatermarkStore
Source§fn load(&self, _table_name: &str) -> Result<Option<Watermark>, SidecarError>
fn load(&self, _table_name: &str) -> Result<Option<Watermark>, SidecarError>
Load the watermark for a table. Returns
None if no watermark has been
persisted for the table yet.Source§fn save(&self, _table_name: &str, _wm: &Watermark) -> Result<(), SidecarError>
fn save(&self, _table_name: &str, _wm: &Watermark) -> Result<(), SidecarError>
Persist the watermark for a table.
Source§fn load_global_seq(&self) -> Result<i64, SidecarError>
fn load_global_seq(&self) -> Result<i64, SidecarError>
Load the persisted global sequence counter.
Returns
1 if nothing has been persisted yet (the starting value).Source§fn save_global_seq(&self, _seq: i64) -> Result<(), SidecarError>
fn save_global_seq(&self, _seq: i64) -> Result<(), SidecarError>
Persist the global sequence counter.
Auto Trait Implementations§
impl Freeze for NullWatermarkStore
impl RefUnwindSafe for NullWatermarkStore
impl Send for NullWatermarkStore
impl Sync for NullWatermarkStore
impl Unpin for NullWatermarkStore
impl UnsafeUnpin for NullWatermarkStore
impl UnwindSafe for NullWatermarkStore
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> 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 more