pub struct Recovery<E: Context, A> { /* private fields */ }Expand description
Storage under recovery, before append or snapshot access is available.
Trait Implementations§
Source§impl<E: Context, A: CodecFixedShared> BackingRecovery for Recovery<E, A>
Available on neither commonware_stability_BETA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.
impl<E: Context, A: CodecFixedShared> BackingRecovery for Recovery<E, A>
Available on neither
commonware_stability_BETA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.Source§fn bounds(&self) -> Range<u64> ⓘ
fn bounds(&self) -> Range<u64> ⓘ
Available item positions, including the retained pruning boundary.
Source§async fn read(&self, pos: u64) -> Result<A, Error>
async fn read(&self, pos: u64) -> Result<A, Error>
Read a retained item for initialization validation.
Source§async fn reset(self, size: u64) -> Result<Self, Error>
async fn reset(self, size: u64) -> Result<Self, Error>
Discard stored items and establish an empty journal at
size during initialization.Source§async fn finish(self, size: u64) -> Result<Self::Journal, Error>
async fn finish(self, size: u64) -> Result<Self::Journal, Error>
Durably retain at most
size items and publish the live journal.Source§fn last_matching<P>(
&self,
ceiling: u64,
predicate: P,
) -> impl Future<Output = Result<u64, JournalError>> + Send
fn last_matching<P>( &self, ceiling: u64, predicate: P, ) -> impl Future<Output = Result<u64, JournalError>> + Send
Select the latest retained item satisfying
predicate below an exclusive ceiling.Auto Trait Implementations§
impl<E, A> !RefUnwindSafe for Recovery<E, A>
impl<E, A> !UnwindSafe for Recovery<E, A>
impl<E, A> Freeze for Recovery<E, A>
impl<E, A> Send for Recovery<E, A>
impl<E, A> Sync for Recovery<E, A>
impl<E, A> Unpin for Recovery<E, A>
impl<E, A> UnsafeUnpin for Recovery<E, A>where
E: UnsafeUnpin,
Checkpoint<E>: UnsafeUnpin,
Partition<E>: UnsafeUnpin,
BTreeMap<u64, Writer<<E as Storage>::Blob, Recovering>>: UnsafeUnpin,
PhantomData<A>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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