Enum matrix_sdk::ruma::IdParseError
source · #[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)>
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.
source§impl PartialEq for Error
impl PartialEq for Error
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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