Enum ruma_signatures::ParseError [−][src]
#[non_exhaustive] pub enum ParseError { UserId(Error), EventId(Error), ServerNameFromEventIdByRoomVersion(EventId, RoomVersionId), DerivedPublicKeyDoesNotMatchParsedKey { parsed_key: Vec<u8>, derived_key: Vec<u8>, }, Oid { expected: ObjectIdentifier, found: ObjectIdentifier, }, SecretKey(SignatureError), PublicKey(SignatureError), Signature(SignatureError), Base64 { of_type: String, string: String, source: DecodeError, }, }
Expand description
Errors relating to parsing of all sorts.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
For user ID parsing errors.
For event ID parsing errors.
ServerNameFromEventIdByRoomVersion(EventId, RoomVersionId)
For when an event ID, coupled with a specific room version, doesn’t have a server name embedded.
For when the extracted/“parsed” public key from a PKCS#8 v2 document doesn’t match the public key derived from it’s private key.
Show fields
For when the ASN.1 Object Identifier on a PKCS#8 document doesn’t match the expected one.
e.g. the document describes a RSA key, while an ed25519 key was expected.
Show fields
Fields of Oid
SecretKey(SignatureError)
For when ed25519_dalek
cannot parse a secret/private key.
PublicKey(SignatureError)
For when ed25519_dalek
cannot parse a public key.
Signature(SignatureError)
For when ed25519_dalek
cannot parse a signature.
For when parsing base64 gives an error.
Show fields
Fields of Base64
of_type: String
The “type”/name of the base64 string
string: String
The string itself.
source: DecodeError
The originating error.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError