pub enum ConfigurationLoadError {
NotFound {
loader: String,
url: String,
},
NoAccess {
loader: String,
url: String,
},
Timeout {
loader: String,
url: String,
timeout_in_seconds: usize,
},
InvalidUrl {
loader: String,
url: String,
error: Error,
},
UrlSchemeNotFound {
scheme: String,
},
Duplicate {
loader: String,
url: String,
plugin: String,
format_1: String,
format_2: String,
},
Load {
loader: String,
url: String,
description: String,
source: Error,
skippable: bool,
},
AcquireLock {
url: String,
},
Other(Error),
}Expand description
Loaded 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.
note that skippable key is very important. You might want to detect your own options from
provided Url and sometimes make some errors skippable based on you detected options.
AcquireLock
Other(Error)
Implementations§
source§impl ConfigurationLoadError
impl ConfigurationLoadError
pub fn is_skippable(&self) -> bool
Trait Implementations§
source§impl Debug for ConfigurationLoadError
impl Debug for ConfigurationLoadError
source§impl Display for ConfigurationLoadError
impl Display for ConfigurationLoadError
source§impl Error for ConfigurationLoadError
impl Error for ConfigurationLoadError
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()
source§impl From<ConfigurationLoadError> for ConfigurationError
impl From<ConfigurationLoadError> for ConfigurationError
source§fn from(source: ConfigurationLoadError) -> Self
fn from(source: ConfigurationLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ConfigurationLoadError
impl Send for ConfigurationLoadError
impl Sync for ConfigurationLoadError
impl Unpin for ConfigurationLoadError
impl UnwindSafe for ConfigurationLoadError
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