pub enum ProfigError {
Io(Error),
Parse {
format: &'static str,
error: String,
},
InvalidFormat(String),
Validation(String),
Custom(String),
}Variants§
Trait Implementations§
Source§impl Debug for ProfigError
impl Debug for ProfigError
Source§impl Display for ProfigError
impl Display for ProfigError
Source§impl Error for ProfigError
impl Error for ProfigError
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<Error> for ProfigError
impl From<Error> for ProfigError
Source§fn from(err: Error) -> ProfigError
fn from(err: Error) -> ProfigError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProfigError
impl !RefUnwindSafe for ProfigError
impl Send for ProfigError
impl Sync for ProfigError
impl Unpin for ProfigError
impl !UnwindSafe for ProfigError
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