pub enum RecoveryResult {
Recovered(usize),
AtSyncPoint,
BudgetExhausted,
ReachedEof,
}Expand description
Result of an error recovery attempt. Result of a recovery operation.
Variants§
Recovered(usize)
Recovery succeeded, consumed the given number of tokens.
AtSyncPoint
Already at a sync point when recovery was called. The caller must decide whether to consume the sync token. This prevents infinite loops at call boundaries.
BudgetExhausted
Recovery failed due to budget exhaustion.
ReachedEof
Recovery reached EOF without finding sync point.
Trait Implementations§
Source§impl Clone for RecoveryResult
impl Clone for RecoveryResult
Source§fn clone(&self) -> RecoveryResult
fn clone(&self) -> RecoveryResult
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 moreSource§impl Debug for RecoveryResult
impl Debug for RecoveryResult
Source§impl PartialEq for RecoveryResult
impl PartialEq for RecoveryResult
impl Copy for RecoveryResult
impl Eq for RecoveryResult
impl StructuralPartialEq for RecoveryResult
Auto Trait Implementations§
impl Freeze for RecoveryResult
impl RefUnwindSafe for RecoveryResult
impl Send for RecoveryResult
impl Sync for RecoveryResult
impl Unpin for RecoveryResult
impl UnsafeUnpin for RecoveryResult
impl UnwindSafe for RecoveryResult
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