pub enum LoadError<L2 = Infallible>where
L2: Error,{
Io(IoError),
Toml(Error),
Layer2(L2),
Custom(String),
}
Variants§
Io(IoError)
I/O error loading wallet - {0}
Toml(Error)
unable to parse TOML file - {0}
Layer2(L2)
Custom(String)
Trait Implementations§
Source§impl<L2> Error for LoadError<L2>where
L2: Error,
impl<L2> Error for LoadError<L2>where
L2: Error,
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()
Auto Trait Implementations§
impl<L2> Freeze for LoadError<L2>where
L2: Freeze,
impl<L2 = Infallible> !RefUnwindSafe for LoadError<L2>
impl<L2> Send for LoadError<L2>where
L2: Send,
impl<L2> Sync for LoadError<L2>where
L2: Sync,
impl<L2> Unpin for LoadError<L2>where
L2: Unpin,
impl<L2 = Infallible> !UnwindSafe for LoadError<L2>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
Source§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type