Enum ruma_signatures::SplitError [−][src]
#[non_exhaustive] pub enum SplitError { InvalidLength(usize), InvalidVersion(String), UnsupportedAlgorithm(String), }
Expand description
An error when trying to extract the algorithm and version from a key identifier.
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.
The signature’s ID does not have exactly two components separated by a colon.
Tuple Fields of InvalidLength
0: usize
The signature’s ID contains invalid characters in its version.
Tuple Fields of InvalidVersion
0: String
The signature uses an unsupported algorithm.
Tuple Fields of UnsupportedAlgorithm
0: String
Trait Implementations
Performs the conversion.