pub enum TurnOutcome {
Complete(TurnResult),
PartialSuccess {
result: TurnResult,
warnings: Vec<TurnWarning>,
},
}Expand description
Full success vs partial success after non-fatal write failures.
Variants§
Complete(TurnResult)
All bookkeeping writes succeeded.
PartialSuccess
Turn completed but one or more non-fatal writes failed; TurnResult is still valid.
Implementations§
Source§impl TurnOutcome
impl TurnOutcome
pub fn result(&self) -> &TurnResult
pub fn warnings(&self) -> &[TurnWarning]
pub fn into_result(self) -> TurnResult
pub fn is_complete(&self) -> bool
pub fn is_partial_success(&self) -> bool
pub fn turn_status(&self) -> TurnStatus
Trait Implementations§
Source§impl Clone for TurnOutcome
impl Clone for TurnOutcome
Source§fn clone(&self) -> TurnOutcome
fn clone(&self) -> TurnOutcome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TurnOutcome
impl RefUnwindSafe for TurnOutcome
impl Send for TurnOutcome
impl Sync for TurnOutcome
impl Unpin for TurnOutcome
impl UnsafeUnpin for TurnOutcome
impl UnwindSafe for TurnOutcome
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