pub struct CachedCdcStorage<S: CdcStorage> { /* private fields */ }Implementations§
Source§impl<S: CdcStorage> CachedCdcStorage<S>
impl<S: CdcStorage> CachedCdcStorage<S>
Trait Implementations§
Source§impl<S: CdcStorage> CdcStorage for CachedCdcStorage<S>
impl<S: CdcStorage> CdcStorage for CachedCdcStorage<S>
fn write(&self, cdc: &Cdc) -> CdcStorageResult<()>
fn read(&self, version: CommitVersion) -> CdcStorageResult<Option<Cdc>>
fn read_range( &self, start: Bound<CommitVersion>, end: Bound<CommitVersion>, batch_size: u64, ) -> CdcStorageResult<CdcBatch>
fn count(&self, version: CommitVersion) -> CdcStorageResult<usize>
fn min_version(&self) -> CdcStorageResult<Option<CommitVersion>>
fn max_version(&self) -> CdcStorageResult<Option<CommitVersion>>
fn drop_before( &self, version: CommitVersion, limit: usize, ) -> CdcStorageResult<DropBeforeResult>
fn find_ttl_cutoff( &self, cutoff: DateTime, ) -> CdcStorageResult<Option<CommitVersion>>
fn exists(&self, version: CommitVersion) -> CdcStorageResult<bool>
fn range( &self, start: Bound<CommitVersion>, end: Bound<CommitVersion>, ) -> CdcStorageResult<CdcBatch>
fn scan(&self, batch_size: u64) -> CdcStorageResult<CdcBatch>
Source§impl<S: Clone + CdcStorage> Clone for CachedCdcStorage<S>
impl<S: Clone + CdcStorage> Clone for CachedCdcStorage<S>
Source§fn clone(&self) -> CachedCdcStorage<S>
fn clone(&self) -> CachedCdcStorage<S>
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 moreAuto Trait Implementations§
impl<S> !RefUnwindSafe for CachedCdcStorage<S>
impl<S> !UnwindSafe for CachedCdcStorage<S>
impl<S> Freeze for CachedCdcStorage<S>where
S: Freeze,
impl<S> Send for CachedCdcStorage<S>
impl<S> Sync for CachedCdcStorage<S>
impl<S> Unpin for CachedCdcStorage<S>where
S: Unpin,
impl<S> UnsafeUnpin for CachedCdcStorage<S>where
S: UnsafeUnpin,
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,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request