Enum safe_network::messaging::Error [−][src]
#[non_exhaustive]
pub enum Error {
Serialisation(String),
FailedToParse(String),
InvalidSignature,
UnsupportedVersion(u16),
}
Expand description
Errors that can occur when interacting with messaging APIs.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Serialisation(String)
An error occurred when serializing a message.
Tuple Fields of Serialisation
0: String
FailedToParse(String)
Failed to parse a message.
The String
will be a human-readable indication of the problem with the message.
Tuple Fields of FailedToParse
0: String
Signature verification failed.
Wherever possible, signatures are verified when deserialising messages. This error is returned when deserialisation succeeded but the signature was invalid.
UnsupportedVersion(u16)
Message read was built with an unsupported version.
Tuple Fields of UnsupportedVersion
0: u16
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more