Enum ruma_identifiers::Error [−][src]
pub enum Error { EmptyRoomVersionId, InvalidCharacters, InvalidKeyAlgorithm, InvalidKeyVersion, InvalidMxcUri, InvalidServerName, MaximumLengthExceeded, MissingDelimiter, MissingLeadingSigil, }
Expand description
An error encountered when trying to parse an invalid ID string.
Variants
The room version ID is empty.
The ID’s localpart contains invalid characters.
Only relevant for user IDs.
The key algorithm is invalid (e.g. empty).
The key version contains outside of [a-zA-Z0-9_].
The mxc:// isn’t a valid Matrix Content URI.
The server name part of the the ID string is not a valid server name.
The ID exceeds 255 bytes (or 32 codepoints for a room version ID).
The ID is missing the colon delimiter between localpart and server name, or between key algorithm and key name / version.
The ID is missing the correct leading sigil.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V