pub struct RecoveryPlanner;Expand description
Finds the best checkpoint to use when recovering a failed job.
Implementations§
Source§impl RecoveryPlanner
impl RecoveryPlanner
Sourcepub fn find_recovery_point<'a>(
store: &'a CheckpointStore,
failed_job_id: &str,
) -> Option<&'a Checkpoint>
pub fn find_recovery_point<'a>( store: &'a CheckpointStore, failed_job_id: &str, ) -> Option<&'a Checkpoint>
Find the most suitable recovery point for a failed job.
Returns the latest checkpoint for the given job, if any exists.
Auto Trait Implementations§
impl Freeze for RecoveryPlanner
impl RefUnwindSafe for RecoveryPlanner
impl Send for RecoveryPlanner
impl Sync for RecoveryPlanner
impl Unpin for RecoveryPlanner
impl UnsafeUnpin for RecoveryPlanner
impl UnwindSafe for RecoveryPlanner
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> 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