Enum ruma::identifiers::Error [−]
#[non_exhaustive]
pub enum Error {
EmptyClientSecret,
EmptyRoomName,
EmptyRoomVersionId,
InvalidCharacters,
InvalidKeyAlgorithm,
InvalidKeyVersion,
InvalidMxcUri,
InvalidServerName,
MaximumLengthExceeded,
MissingDelimiter,
MissingLeadingSigil,
}
Expand description
An error encountered when trying to parse an invalid ID string.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
The client secret is empty.
The room name is empty.
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
Performs the conversion.
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
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