Enum ruma::signatures::ParseError [−][src]
#[non_exhaustive] pub enum ParseError { UserId(Error), EventId(Error), ServerNameFromEventIdByRoomVersion(EventId, RoomVersionId), DerivedPublicKeyDoesNotMatchParsedKey { parsed_key: Vec<u8, Global>, derived_key: Vec<u8, Global>, }, Oid { expected: ObjectIdentifier, found: ObjectIdentifier, }, SecretKey(Error), PublicKey(Error), Signature(Error), Base64 { of_type: String, string: String, source: DecodeError, }, }
signatures
only.Expand description
Errors relating to parsing of all sorts.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UserId(Error)
For user ID parsing errors.
EventId(Error)
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(Error)
For when [ed25519_dalek
] cannot parse a secret/private key.
PublicKey(Error)
For when [ed25519_dalek
] cannot parse a public key.
Signature(Error)
For when [ed25519_dalek
] cannot parse a signature.
For when parsing base64 gives an error.
Show fields
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
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
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