Enum libp2p_gossipsub::error::ValidationError
source · pub enum ValidationError {
InvalidSignature,
EmptySequenceNumber,
InvalidSequenceNumber,
InvalidPeerId,
SignaturePresent,
SequenceNumberPresent,
MessageSourcePresent,
TransformFailed,
}
Variants§
InvalidSignature
The message has an invalid signature,
EmptySequenceNumber
The sequence number was empty, expected a value.
InvalidSequenceNumber
The sequence number was the incorrect size
InvalidPeerId
The PeerId was invalid
SignaturePresent
Signature existed when validation has been sent to
crate::behaviour::MessageAuthenticity::Anonymous
.
SequenceNumberPresent
Sequence number existed when validation has been sent to
crate::behaviour::MessageAuthenticity::Anonymous
.
MessageSourcePresent
Message source existed when validation has been sent to
crate::behaviour::MessageAuthenticity::Anonymous
.
TransformFailed
The data transformation failed.
Trait Implementations§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
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 ValidationError
impl Debug for ValidationError
source§impl Display for ValidationError
impl Display for ValidationError
source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()