pub enum RevocationViewError {
NonMonotoneEpoch {
candidate: u64,
installed: u64,
},
}Expand description
Errors surfaced by the revocation-view cache. Every variant is fail-closed: the embedding kernel MUST refuse to install a snapshot that triggers any of them and SHOULD treat the active snapshot as the only safe reference for in-flight dispatch.
Variants§
NonMonotoneEpoch
Candidate snapshot’s epoch is not strictly greater than the currently-installed snapshot. Required to keep the view monotone so a stale or replayed gossip frame cannot rewind dispatch.
Trait Implementations§
Source§impl Clone for RevocationViewError
impl Clone for RevocationViewError
Source§fn clone(&self) -> RevocationViewError
fn clone(&self) -> RevocationViewError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RevocationViewError
impl Debug for RevocationViewError
Source§impl Display for RevocationViewError
impl Display for RevocationViewError
impl Eq for RevocationViewError
Source§impl Error for RevocationViewError
impl Error for RevocationViewError
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 PartialEq for RevocationViewError
impl PartialEq for RevocationViewError
impl StructuralPartialEq for RevocationViewError
Auto Trait Implementations§
impl Freeze for RevocationViewError
impl RefUnwindSafe for RevocationViewError
impl Send for RevocationViewError
impl Sync for RevocationViewError
impl Unpin for RevocationViewError
impl UnsafeUnpin for RevocationViewError
impl UnwindSafe for RevocationViewError
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