#[non_exhaustive]pub enum IdParseError {
Empty,
InvalidCharacters,
InvalidMatrixId(MatrixIdError),
InvalidMatrixToUri(MatrixToError),
InvalidMatrixUri(MatrixUriError),
InvalidMxcUri(MxcUriError),
InvalidVoipVersionId(VoipVersionIdError),
InvalidServerName,
InvalidUtf8,
MaximumLengthExceeded,
MissingColon,
MissingLeadingSigil,
}
Expand description
An error encountered when trying to parse an invalid ID string.
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.
Empty
The identifier or a required part of it is empty.
InvalidCharacters
The identifier contains invalid characters.
InvalidMatrixId(MatrixIdError)
The string isn’t a valid Matrix ID.
InvalidMatrixToUri(MatrixToError)
The string isn’t a valid Matrix.to URI.
InvalidMatrixUri(MatrixUriError)
The string isn’t a valid Matrix URI.
InvalidMxcUri(MxcUriError)
The mxc:// isn’t a valid Matrix Content URI.
InvalidVoipVersionId(VoipVersionIdError)
The value isn’t a valid VoIP version Id.
InvalidServerName
The server name part of the the ID string is not a valid server name.
InvalidUtf8
The string isn’t valid UTF-8.
MaximumLengthExceeded
The ID exceeds 255 bytes (or 32 codepoints for a room version ID).
MissingColon
The ID is missing the colon delimiter between localpart and server name, or between key algorithm and key name / version.
MissingLeadingSigil
The ID is missing the correct leading sigil.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for CryptoStoreError
impl From<Error> for CryptoStoreError
Source§fn from(source: Error) -> CryptoStoreError
fn from(source: Error) -> CryptoStoreError
Converts to this type from the input type.
Source§impl From<Error> for DeserializationError
impl From<Error> for DeserializationError
Source§fn from(source: Error) -> DeserializationError
fn from(source: Error) -> DeserializationError
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: IdParseError) -> Self
fn from(source: IdParseError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SignatureError
impl From<Error> for SignatureError
Source§fn from(source: Error) -> SignatureError
fn from(source: Error) -> SignatureError
Converts to this type from the input type.
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§fn from(source: Error) -> StoreError
fn from(source: Error) -> StoreError
Converts to this type from the input type.
Source§impl From<MatrixIdError> for Error
impl From<MatrixIdError> for Error
Source§fn from(source: MatrixIdError) -> Error
fn from(source: MatrixIdError) -> Error
Converts to this type from the input type.
Source§impl From<MatrixToError> for Error
impl From<MatrixToError> for Error
Source§fn from(source: MatrixToError) -> Error
fn from(source: MatrixToError) -> Error
Converts to this type from the input type.
Source§impl From<MatrixUriError> for Error
impl From<MatrixUriError> for Error
Source§fn from(source: MatrixUriError) -> Error
fn from(source: MatrixUriError) -> Error
Converts to this type from the input type.
Source§impl From<MxcUriError> for Error
impl From<MxcUriError> for Error
Source§fn from(source: MxcUriError) -> Error
fn from(source: MxcUriError) -> Error
Converts to this type from the input type.
Source§impl From<VoipVersionIdError> for Error
impl From<VoipVersionIdError> for Error
Source§fn from(source: VoipVersionIdError) -> Error
fn from(source: VoipVersionIdError) -> Error
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more