pub enum EpochError {
Expired {
epoch: EpochId,
},
BudgetExhausted {
epoch: EpochId,
budget: u32,
used: u32,
},
TransitionOccurred {
from: EpochId,
to: EpochId,
},
Mismatch {
expected: EpochId,
actual: EpochId,
},
ValidityViolation {
symbol_epoch: EpochId,
window: SymbolValidityWindow,
},
BarrierTimeout {
epoch: EpochId,
arrived: u32,
expected: u32,
},
}Expand description
Error types for epoch operations.
Variants§
Expired
Epoch has expired.
BudgetExhausted
Epoch operation budget exhausted.
Fields
TransitionOccurred
Epoch transition occurred during operation.
Fields
Mismatch
Epoch mismatch.
ValidityViolation
Symbol validity window violation.
Fields
§
window: SymbolValidityWindowThe validity window.
BarrierTimeout
Barrier timeout.
Trait Implementations§
Source§impl Clone for EpochError
impl Clone for EpochError
Source§fn clone(&self) -> EpochError
fn clone(&self) -> EpochError
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 EpochError
impl Debug for EpochError
Source§impl Display for EpochError
impl Display for EpochError
Source§impl Error for EpochError
impl Error for EpochError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<EpochError> for Error
impl From<EpochError> for Error
Source§fn from(e: EpochError) -> Self
fn from(e: EpochError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EpochError
impl PartialEq for EpochError
impl Eq for EpochError
impl StructuralPartialEq for EpochError
Auto Trait Implementations§
impl Freeze for EpochError
impl RefUnwindSafe for EpochError
impl Send for EpochError
impl Sync for EpochError
impl Unpin for EpochError
impl UnwindSafe for EpochError
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).