pub enum AdoptError {
Verify(VerifyError),
Stale {
held: u64,
offered: u64,
},
}Expand description
Why ReplicatedRevocations::adopt refused a set.
Variants§
Verify(VerifyError)
Not a revocation set signed for the trusted issuer: bad signature, an access token offered as a set, a non-issuer-role key, a foreign issuer.
Stale
A genuine set, but older than the one held. Gossip delivers sets out of order, so callers should treat this as routine, not as an attack.
Trait Implementations§
Source§impl Debug for AdoptError
impl Debug for AdoptError
Source§impl Display for AdoptError
impl Display for AdoptError
Source§impl Error for AdoptError
impl Error for AdoptError
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<VerifyError> for AdoptError
impl From<VerifyError> for AdoptError
Source§fn from(source: VerifyError) -> Self
fn from(source: VerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AdoptError
impl RefUnwindSafe for AdoptError
impl Send for AdoptError
impl Sync for AdoptError
impl Unpin for AdoptError
impl UnsafeUnpin for AdoptError
impl UnwindSafe for AdoptError
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