#[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
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
Source§impl From<Error> for DeserializationError
impl From<Error> for DeserializationError
Source§fn from(source: Error) -> DeserializationError
fn from(source: Error) -> DeserializationError
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: IdParseError) -> Self
fn from(source: IdParseError) -> Self
Source§impl From<Error> for SignatureError
impl From<Error> for SignatureError
Source§fn from(source: Error) -> SignatureError
fn from(source: Error) -> SignatureError
Source§impl From<Error> for StoreError
impl From<Error> for StoreError
Source§fn from(source: Error) -> StoreError
fn from(source: Error) -> StoreError
Source§impl From<Error> for XMatrixParseError
impl From<Error> for XMatrixParseError
Source§fn from(source: Error) -> XMatrixParseError
fn from(source: Error) -> XMatrixParseError
Source§impl From<MatrixIdError> for Error
impl From<MatrixIdError> for Error
Source§fn from(source: MatrixIdError) -> Error
fn from(source: MatrixIdError) -> Error
Source§impl From<MatrixToError> for Error
impl From<MatrixToError> for Error
Source§fn from(source: MatrixToError) -> Error
fn from(source: MatrixToError) -> Error
Source§impl From<MatrixUriError> for Error
impl From<MatrixUriError> for Error
Source§fn from(source: MatrixUriError) -> Error
fn from(source: MatrixUriError) -> Error
Source§impl From<MxcUriError> for Error
impl From<MxcUriError> for Error
Source§fn from(source: MxcUriError) -> Error
fn from(source: MxcUriError) -> Error
Source§impl From<VoipVersionIdError> for Error
impl From<VoipVersionIdError> for Error
Source§fn from(source: VoipVersionIdError) -> Error
fn from(source: VoipVersionIdError) -> 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> 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
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, 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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.