pub struct Stopped {
pub checkpoint: Option<Seq>,
pub checkpoint_error: Option<String>,
}Expand description
What a clean stop managed to do, for the caller to report.
The checkpoint is reported rather than returned as an error because a snapshot that fails must not keep the socket on the filesystem or the writer lock held — the next kernel would inherit both. It is reported rather than swallowed because a barrier that has silently stopped firing grows recovery time without bound, and the first anyone hears of it is a restart that replays the whole log.
Fields§
§checkpoint: Option<Seq>The sequence the parting snapshot was taken at, if one was.
checkpoint_error: Option<String>Why there is no checkpoint, when the reason is a failure rather than having nothing to snapshot.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stopped
impl RefUnwindSafe for Stopped
impl Send for Stopped
impl Sync for Stopped
impl Unpin for Stopped
impl UnsafeUnpin for Stopped
impl UnwindSafe for Stopped
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