pub enum ProtocolValidationError {
Local(LocalError),
InvalidEvidence(String),
}
Expand description
An error that can occur during the validation of an evidence of a protocol error.
Variants§
Local(LocalError)
Indicates a local problem, usually a bug in the library code.
InvalidEvidence(String)
Indicates a problem with the evidence, for example missing messages, or messages that cannot be deserialized.
Trait Implementations§
Source§impl Clone for ProtocolValidationError
impl Clone for ProtocolValidationError
Source§fn clone(&self) -> ProtocolValidationError
fn clone(&self) -> ProtocolValidationError
Returns a copy 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 ProtocolValidationError
impl Debug for ProtocolValidationError
Source§impl From<DirectMessageError> for ProtocolValidationError
impl From<DirectMessageError> for ProtocolValidationError
Source§fn from(error: DirectMessageError) -> Self
fn from(error: DirectMessageError) -> Self
Converts to this type from the input type.
Source§impl From<EchoBroadcastError> for ProtocolValidationError
impl From<EchoBroadcastError> for ProtocolValidationError
Source§fn from(error: EchoBroadcastError) -> Self
fn from(error: EchoBroadcastError) -> Self
Converts to this type from the input type.
Source§impl From<LocalError> for ProtocolValidationError
impl From<LocalError> for ProtocolValidationError
Source§fn from(error: LocalError) -> Self
fn from(error: LocalError) -> Self
Converts to this type from the input type.
Source§impl From<NormalBroadcastError> for ProtocolValidationError
impl From<NormalBroadcastError> for ProtocolValidationError
Source§fn from(error: NormalBroadcastError) -> Self
fn from(error: NormalBroadcastError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolValidationError> for EvidenceError
impl From<ProtocolValidationError> for EvidenceError
Source§fn from(error: ProtocolValidationError) -> Self
fn from(error: ProtocolValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtocolValidationError
impl RefUnwindSafe for ProtocolValidationError
impl Send for ProtocolValidationError
impl Sync for ProtocolValidationError
impl Unpin for ProtocolValidationError
impl UnwindSafe for ProtocolValidationError
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