pub struct CheckpointCoordinator { /* private fields */ }Implementations§
Source§impl CheckpointCoordinator
impl CheckpointCoordinator
pub async fn open( store: ObjectArchiveStore, mode: DurabilityMode, ) -> Result<Self, DurabilityError>
pub async fn open_with_holder( store: ObjectArchiveStore, mode: DurabilityMode, holder: impl AsRef<str>, ) -> Result<Self, DurabilityError>
pub async fn open_with_holder_and_options( store: ObjectArchiveStore, mode: DurabilityMode, holder: impl AsRef<str>, publisher_options: CheckpointPublisherOptions, ) -> Result<Self, DurabilityError>
pub const fn mode(&self) -> &DurabilityMode
pub fn durable_tip(&self) -> CheckpointTip
pub async fn refresh_durable_tip( &self, ) -> Result<CheckpointTip, DurabilityError>
pub fn health(&self) -> DurabilityHealth
pub fn note_committed(&self, index: LogIndex)
pub fn note_recovered_committed(&self, index: LogIndex)
pub fn write_allowed(&self) -> Result<(), DurabilityError>
pub async fn flush_runtime( &self, runtime: &NodeRuntime, target_index: LogIndex, ) -> Result<CheckpointTip, DurabilityError>
pub async fn checkpoint_compact( &self, runtime: &NodeRuntime, ) -> Result<RecoveryAnchor, DurabilityError>
pub async fn checkpoint_compact_fenced( &self, runtime: &NodeRuntime, expected_config_id: u64, expected_recovery_generation: u64, expected_root: LogAnchor, ) -> Result<RecoveryAnchor, DurabilityError>
pub async fn run_background<F>( self: Arc<Self>, runtime: Arc<NodeRuntime>, shutdown: F, ) -> Result<(), DurabilityError>
Auto Trait Implementations§
impl !Freeze for CheckpointCoordinator
impl !RefUnwindSafe for CheckpointCoordinator
impl !UnwindSafe for CheckpointCoordinator
impl Send for CheckpointCoordinator
impl Sync for CheckpointCoordinator
impl Unpin for CheckpointCoordinator
impl UnsafeUnpin for CheckpointCoordinator
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