pub struct BankError(/* private fields */);Expand description
A rejection by the bank: the code line selected as the reason (docs/return-codes-design.md section 3) and every code of the response, in wire order (HIRMG first, then HIRMS), so nothing is lost.
Implementations§
Source§impl BankError
impl BankError
Sourcepub fn new(code: ReturnCode, codes: Vec<ReturnCode>) -> Self
pub fn new(code: ReturnCode, codes: Vec<ReturnCode>) -> Self
code is the selected class 9 code, codes all codes of the
response.
Sourcepub fn code(&self) -> &ReturnCode
pub fn code(&self) -> &ReturnCode
The code line reported as the reason.
Sourcepub fn codes(&self) -> &[ReturnCode]
pub fn codes(&self) -> &[ReturnCode]
Every code of the response, success and warning codes included.
Trait Implementations§
impl Eq for BankError
impl StructuralPartialEq for BankError
Auto Trait Implementations§
impl Forget for BankError
impl Freeze for BankError
impl Move for BankError
impl RefUnwindSafe for BankError
impl Send for BankError
impl Sync for BankError
impl Unpin for BankError
impl UnsafeUnpin for BankError
impl UnwindSafe for BankError
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