#[non_exhaustive]pub enum DekShredError {
UnknownDek,
AlreadyShredded,
Backend(&'static str),
}Expand description
DEK shred failure taxonomy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownDek
dek_id was not recognised — benign on replay of an already
shredded user, fatal if the observer is first-seeing the event.
AlreadyShredded
DEK had been shredded on a previous call — the observer treats this as a no-op + reuses the cached attestation.
Backend(&'static str)
Backend-specific failure — network, auth, RPC error. Observers
surface this via ProjectionError::Storage.
Trait Implementations§
Source§impl Debug for DekShredError
impl Debug for DekShredError
Source§impl Display for DekShredError
impl Display for DekShredError
Source§impl Error for DekShredError
impl Error for DekShredError
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()
Auto Trait Implementations§
impl Freeze for DekShredError
impl RefUnwindSafe for DekShredError
impl Send for DekShredError
impl Sync for DekShredError
impl Unpin for DekShredError
impl UnsafeUnpin for DekShredError
impl UnwindSafe for DekShredError
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