pub enum LoadError {
ProfileNotFound(String),
AuthServerNotFound(String),
HomeDirError {
env: String,
},
FileOpenError {
path: PathBuf,
source: Error,
},
FileParseError {
path: PathBuf,
source: Error,
},
}Expand description
Errors that may occur while loading a Configuration.
Variants§
ProfileNotFound(String)
Configuration does not contain the expected profile.
AuthServerNotFound(String)
Configuration does not contain the expected auth server name.
HomeDirError
Could not determine user home directory.
FileOpenError
Fields
Failed to open configuration file.
FileParseError
Failed to parse configuration file as TOML.
Trait Implementations§
source§impl Error for LoadError
impl Error for LoadError
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 LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl !UnwindSafe for LoadError
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