pub enum GetConfigError {
IoError {
cfg_type: ConfigType,
kind: ErrorKind,
},
ParseError {
cfg_type: ConfigType,
msg: String,
},
}Expand description
Indicates an error while reading/parsing a configuration file.
Variants§
IoError
A general file system error while reading the file.
ParseError
An error while parsing the json from the file.
Implementations§
Source§impl GetConfigError
impl GetConfigError
Sourcepub fn with_cfg_type(self, cfg_type: ConfigType) -> GetConfigError
pub fn with_cfg_type(self, cfg_type: ConfigType) -> GetConfigError
Copies the error with the updated cfg_type
Trait Implementations§
Source§impl Clone for GetConfigError
impl Clone for GetConfigError
Source§fn clone(&self) -> GetConfigError
fn clone(&self) -> GetConfigError
Returns a duplicate of the value. Read more
1.0.0 · 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 GetConfigError
impl Debug for GetConfigError
Source§impl From<Error> for GetConfigError
impl From<Error> for GetConfigError
Source§impl From<Error> for GetConfigError
impl From<Error> for GetConfigError
Source§impl From<GetConfigError> for GetTendrilsRepoError
impl From<GetConfigError> for GetTendrilsRepoError
Source§fn from(err: GetConfigError) -> Self
fn from(err: GetConfigError) -> Self
Converts to this type from the input type.
Source§impl From<GetConfigError> for SetupError
impl From<GetConfigError> for SetupError
Source§fn from(err: GetConfigError) -> Self
fn from(err: GetConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetConfigError
impl PartialEq for GetConfigError
Source§impl ToString for GetConfigError
impl ToString for GetConfigError
impl Eq for GetConfigError
impl StructuralPartialEq for GetConfigError
Auto Trait Implementations§
impl Freeze for GetConfigError
impl RefUnwindSafe for GetConfigError
impl Send for GetConfigError
impl Sync for GetConfigError
impl Unpin for GetConfigError
impl UnsafeUnpin for GetConfigError
impl UnwindSafe for GetConfigError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.