pub enum ResourceUriError {
InvalidPath(String),
InvalidScheme(String),
UrlParse(ParseError),
NotAFilePath(String),
ClientPath(InvalidClientPath),
}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.
UrlParse(ParseError)
The URI is not parseable as a URL.
NotAFilePath(String)
The URI does not name a filesystem path.
ClientPath(InvalidClientPath)
The decoded path is not an acceptable client 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
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()
Source§impl From<ResourceUriError> for Error
impl From<ResourceUriError> for Error
Source§fn from(source: ResourceUriError) -> Self
fn from(source: ResourceUriError) -> Self
Converts to this type from the input type.
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