pub enum BalanceError<E> {
Fetch(E),
NotFound {
path: String,
},
Json {
path: String,
error: String,
},
Verify(VerifyError),
}Expand description
残高を確かめられなかった。E は取ってくる関数のエラー
Variants§
Fetch(E)
取ってこられなかった
NotFound
要るものが REST になかった
Json
JSON として読めなかった
Verify(VerifyError)
確かめたら合わなかった。取り直しても合わなかったときは、最後のもの
Trait Implementations§
Source§impl<E: Debug> Debug for BalanceError<E>
impl<E: Debug> Debug for BalanceError<E>
Source§impl<E: Display> Display for BalanceError<E>
impl<E: Display> Display for BalanceError<E>
Source§impl<E: Debug + Display> Error for BalanceError<E>
impl<E: Debug + Display> Error for BalanceError<E>
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<E> Freeze for BalanceError<E>where
E: Freeze,
impl<E> RefUnwindSafe for BalanceError<E>where
E: RefUnwindSafe,
impl<E> Send for BalanceError<E>where
E: Send,
impl<E> Sync for BalanceError<E>where
E: Sync,
impl<E> Unpin for BalanceError<E>where
E: Unpin,
impl<E> UnsafeUnpin for BalanceError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for BalanceError<E>where
E: UnwindSafe,
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