pub enum SettingError {
IOError(Error),
BinReadError(Error),
InvalidValue(String, String),
InvalidFile(String),
}Variants§
Trait Implementations§
Source§impl Debug for SettingError
impl Debug for SettingError
Source§impl Display for SettingError
impl Display for SettingError
Source§impl Error for SettingError
impl Error for SettingError
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 SettingError
impl From<Error> for SettingError
Auto Trait Implementations§
impl !RefUnwindSafe for SettingError
impl !UnwindSafe for SettingError
impl Forget for SettingError
impl Freeze for SettingErrorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const dyn Debug + Sync + Send is !null: Freeze,
PhantomData<dyn Debug + Sync + Send>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const dyn CustomError is !null: Freeze,
PhantomData<dyn CustomError>: Freeze,
PhantomData<(&'static str, Error)>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
PhantomData<BacktraceFrame>: Freeze,
impl Move for SettingError
impl Send for SettingError
impl Sync for SettingError
impl Unpin for SettingError
impl UnsafeUnpin for SettingErrorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const dyn Debug + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Debug + Sync + Send>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const dyn CustomError is !null: UnsafeUnpin,
PhantomData<dyn CustomError>: UnsafeUnpin,
PhantomData<(&'static str, Error)>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
PhantomData<BacktraceFrame>: UnsafeUnpin,
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