pub enum Error {
NotFound {
loader: String,
url: Url,
item: Box<String>,
},
NoAccess {
loader: String,
url: Url,
},
Timeout {
loader: String,
url: Url,
timeout_in_seconds: usize,
},
InvalidUrl {
loader: String,
url: String,
source: Error,
},
UrlSchemeNotFound {
scheme: String,
},
Duplicate {
loader: Box<String>,
url: Url,
plugin: Box<String>,
format_1: Box<String>,
format_2: Box<String>,
},
Load {
loader: String,
url: Url,
description: Box<String>,
source: Error,
},
LoaderNotFound {
scheme: String,
url: Url,
},
Other(Error),
}Expand description
Load error type.
Variants§
NotFound
An entity could not be found.
NoAccess
Did not have enough permissions to read the contents.
Timeout
Got timeout when reading the contents.
InvalidUrl
The provided URL is invalid.
UrlSchemeNotFound
Could not found URL scheme.
Duplicate
Found more than one configuration with two different formats (extensions) for the same plugin.
Load
Could not load the configuration.
LoaderNotFound
Other(Error)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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