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
Fields
env: StringAn environment variable that indicates the user home directory when set.
Could not determine user home directory.
FileOpenError
Failed to open configuration file.
FileParseError
Failed to parse configuration file as TOML.
Trait Implementations
sourceimpl Error for LoadError
impl Error for LoadError
sourcefn 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 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more