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
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.
An error occurred when serializing a message.
Tuple Fields of Serialisation
0: 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.
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self