Enum ruma_identifiers::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
Expand description
The room version ID is empty.
Expand description
The ID’s localpart contains invalid characters.
Only relevant for user IDs.
Expand description
The key algorithm is invalid (e.g. empty).
Expand description
The key version contains outside of [a-zA-Z0-9_].
Expand description
The mxc:// isn’t a valid Matrix Content URI.
Expand description
The server name part of the the ID string is not a valid server name.
Expand description
The ID exceeds 255 bytes (or 32 codepoints for a room version ID).
Expand description
The ID is missing the colon delimiter between localpart and server name, or between key algorithm and key name / version.
Expand description
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
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,