pub enum ResourceUriError {
InvalidPath(String),
InvalidScheme(String),
DecodeFailed(String),
}Expand description
Errors produced by the resource URI codec.
Variants§
InvalidPath(String)
The path is relative or contains non-UTF-8 components.
InvalidScheme(String)
The URI has the wrong scheme or malformed structure.
DecodeFailed(String)
The URI path could not be decoded to a filesystem path.
Trait Implementations§
Source§impl Debug for ResourceUriError
impl Debug for ResourceUriError
Source§impl Display for ResourceUriError
impl Display for ResourceUriError
Source§impl Error for ResourceUriError
impl Error for ResourceUriError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Freeze for ResourceUriError
impl RefUnwindSafe for ResourceUriError
impl Send for ResourceUriError
impl Sync for ResourceUriError
impl Unpin for ResourceUriError
impl UnsafeUnpin for ResourceUriError
impl UnwindSafe for ResourceUriError
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