pub enum ConfigLoadError {
UnsupportedFormat {
path: String,
},
Read {
path: String,
message: String,
},
Deserialize {
path: String,
message: String,
},
SshConfig(SshConfigError),
}Expand description
Error returned when loading the top-level settings file fails.
Variants§
UnsupportedFormat
The settings file extension is not supported.
Read
Building the config source from disk failed.
Deserialize
Deserializing settings from the config source failed.
SshConfig(SshConfigError)
SSH configuration referenced by settings failed validation.
Trait Implementations§
Source§impl Clone for ConfigLoadError
impl Clone for ConfigLoadError
Source§fn clone(&self) -> ConfigLoadError
fn clone(&self) -> ConfigLoadError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigLoadError
impl Debug for ConfigLoadError
Source§impl Display for ConfigLoadError
impl Display for ConfigLoadError
Source§impl Error for ConfigLoadError
impl Error for ConfigLoadError
1.30.0 · 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<ConfigLoadError> for GenjaError
impl From<ConfigLoadError> for GenjaError
Source§fn from(value: ConfigLoadError) -> Self
fn from(value: ConfigLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfigLoadError
impl RefUnwindSafe for ConfigLoadError
impl Send for ConfigLoadError
impl Sync for ConfigLoadError
impl Unpin for ConfigLoadError
impl UnsafeUnpin for ConfigLoadError
impl UnwindSafe for ConfigLoadError
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