pub struct ContinuationRecord {
pub attempts: usize,
pub cumulative_wait_ms: u64,
pub outcome: ContinuationOutcome,
}Expand description
Cost and outcome of one node’s attempt to recover a missing report by resuming its own seat.
Fields§
§attempts: usizeFollow-up calls made to the same seat. 0 when the outcome is
ContinuationOutcome::NotNeeded or ContinuationOutcome::NoSession.
cumulative_wait_ms: u64Wall-clock time spent on those follow-up calls, summed — not counting the original call whose reply this is recovering from.
outcome: ContinuationOutcomeWhat ended the loop.
Implementations§
Source§impl ContinuationRecord
impl ContinuationRecord
Sourcepub fn not_needed() -> Self
pub fn not_needed() -> Self
The report was already there on the first try.
Trait Implementations§
Source§impl Clone for ContinuationRecord
impl Clone for ContinuationRecord
impl Copy for ContinuationRecord
Source§impl Debug for ContinuationRecord
impl Debug for ContinuationRecord
Source§impl<'de> Deserialize<'de> for ContinuationRecord
impl<'de> Deserialize<'de> for ContinuationRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ContinuationRecord
impl RefUnwindSafe for ContinuationRecord
impl Send for ContinuationRecord
impl Sync for ContinuationRecord
impl Unpin for ContinuationRecord
impl UnsafeUnpin for ContinuationRecord
impl UnwindSafe for ContinuationRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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