Enum ruma_identifiers_validation::error::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
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl Copy for Error
[src]
impl Eq for Error
[src]
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more