pub enum LocalSrcUriParseError {
NotLocal(Box<str>),
TooManyPaths(Box<str>),
MissingPaths(Box<str>),
UrlParseErr(Box<str>, ParseError),
Empty,
}
Expand description
Possible errors of parsing a LocalSrcUri
.
Variants§
NotLocal(Box<str>)
Protocol of the provided URI is not local://
.
TooManyPaths(Box<str>)
Too many paths in the provided URI.
local://room_id/member_id/endpoint_id/redundant_path
for example.
MissingPaths(Box<str>)
Some paths are missing in the provided URI.
local://room_id//qwerty
for example.
UrlParseErr(Box<str>, ParseError)
Error of parsing the provided URI.
Empty
Provided URI is empty.
Trait Implementations§
source§impl Debug for LocalSrcUriParseError
impl Debug for LocalSrcUriParseError
source§impl Display for LocalSrcUriParseError
impl Display for LocalSrcUriParseError
source§impl Error for LocalSrcUriParseError
impl Error for LocalSrcUriParseError
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()
Auto Trait Implementations§
impl RefUnwindSafe for LocalSrcUriParseError
impl Send for LocalSrcUriParseError
impl Sync for LocalSrcUriParseError
impl Unpin for LocalSrcUriParseError
impl UnwindSafe for LocalSrcUriParseError
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