Enum RepackError
#[non_exhaustive]pub enum RepackError {
NotionalMismatch {
note: f64,
swap: f64,
},
TriggerLevel(f64),
TriggerMonitoring,
SwapNotBought,
}Expand description
A repack note that cannot be built.
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.
NotionalMismatch
The note’s notional is not the swap’s.
TriggerLevel(f64)
The trigger level is not in (0, 1).
TriggerMonitoring
The trigger’s monitoring dates are empty or not strictly ascending.
SwapNotBought
The swap is held from the seller’s side; the SPV is the asset-swap buyer.
Trait Implementations§
§impl Clone for RepackError
impl Clone for RepackError
§fn clone(&self) -> RepackError
fn clone(&self) -> RepackError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RepackError
impl Debug for RepackError
§impl Display for RepackError
impl Display for RepackError
§impl Error for RepackError
impl Error for RepackError
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 PartialEq for RepackError
impl PartialEq for RepackError
impl StructuralPartialEq for RepackError
Auto Trait Implementations§
impl Freeze for RepackError
impl RefUnwindSafe for RepackError
impl Send for RepackError
impl Sync for RepackError
impl Unpin for RepackError
impl UnsafeUnpin for RepackError
impl UnwindSafe for RepackError
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