pub enum EventError {
MissingReference(Box<ContentId>),
ReferenceMismatch {
expected: Box<ContentId>,
actual: Box<ContentId>,
},
Invalid(&'static str),
DepthMismatch {
declared: u32,
implied: u32,
},
DepthExceeded(u32),
Content(Box<ContentError>),
Elision(VerifyError),
}Expand description
Why an event or its elision proof was refused.
Variants§
MissingReference(Box<ContentId>)
An event link did not resolve in the caller’s authorized graph.
ReferenceMismatch
A resolver returned an event filed under another event’s address.
Fields
Invalid(&'static str)
An origin, operation, or reference relationship violates the contract.
DepthMismatch
The claimed depth disagrees with the resolved derivation inputs.
Fields
DepthExceeded(u32)
Generating from an already generated artifact exceeds the depth bound.
Content(Box<ContentError>)
The addressing crate could not encode an event.
Elision(VerifyError)
Existing kernel verification rejected the addressed source material.
Trait Implementations§
Source§impl Debug for EventError
impl Debug for EventError
Source§impl Display for EventError
impl Display for EventError
Source§impl Error for EventError
impl Error for EventError
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<Box<ContentError>> for EventError
impl From<Box<ContentError>> for EventError
Source§fn from(source: Box<ContentError>) -> Self
fn from(source: Box<ContentError>) -> Self
Converts to this type from the input type.
Source§impl From<ContentError> for EventError
impl From<ContentError> for EventError
Source§fn from(error: ContentError) -> Self
fn from(error: ContentError) -> Self
Converts to this type from the input type.
Source§impl From<VerifyError> for EventError
impl From<VerifyError> for EventError
Source§fn from(source: VerifyError) -> Self
fn from(source: VerifyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EventError
impl !UnwindSafe for EventError
impl Freeze for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
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