Enum NdsError
#[non_exhaustive]pub enum NdsError {
NotNds {
family: &'static str,
},
Swap(CurveError),
Settlement(NonDeliverableError),
NoUsdCross {
currency: String,
},
SettlesInItsOwnCurrency {
currency: String,
},
}Expand description
Why a non-deliverable swap could not be drafted from a template.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotNds
The template is of another family.
Swap(CurveError)
The local swap would not draft.
Settlement(NonDeliverableError)
The local swap’s legs refused the conversion.
NoUsdCross
The settlement currency names no currency with a settlement centre and an FX key against USD to cross through.
SettlesInItsOwnCurrency
The swap would settle in the currency it accrues in.
Trait Implementations§
§impl Error for NdsError
impl Error for NdsError
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()
impl StructuralPartialEq for NdsError
Auto Trait Implementations§
impl Freeze for NdsError
impl RefUnwindSafe for NdsError
impl Send for NdsError
impl Sync for NdsError
impl Unpin for NdsError
impl UnsafeUnpin for NdsError
impl UnwindSafe for NdsError
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