Enum CreditBumpError
#[non_exhaustive]pub enum CreditBumpError {
Correlation {
index: String,
source: BaseCorrelationError,
},
Recovery {
entity: String,
value: f64,
},
Refit {
entity: String,
source: Box<CalibrationError>,
},
Pricing(PricingError),
}Expand description
Why a credit bump sensitivity could not be taken.
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.
Correlation
The bump takes a credit index’s base correlation outside [0, 1).
Recovery
The bump takes an entity’s market recovery outside [0, 1).
Refit
An entity’s survival ladder does not solve again at a bumped recovery with its quotes held.
Fields
§
source: Box<CalibrationError>What the calibration refused.
Pricing(PricingError)
Revaluing the book under a bumped market failed.
Trait Implementations§
§impl Clone for CreditBumpError
impl Clone for CreditBumpError
§fn clone(&self) -> CreditBumpError
fn clone(&self) -> CreditBumpError
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 CreditBumpError
impl Debug for CreditBumpError
§impl Display for CreditBumpError
impl Display for CreditBumpError
§impl Error for CreditBumpError
impl Error for CreditBumpError
§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 From<PricingError> for CreditBumpError
impl From<PricingError> for CreditBumpError
§fn from(e: PricingError) -> Self
fn from(e: PricingError) -> Self
Converts to this type from the input type.
§impl PartialEq for CreditBumpError
impl PartialEq for CreditBumpError
impl StructuralPartialEq for CreditBumpError
Auto Trait Implementations§
impl Freeze for CreditBumpError
impl RefUnwindSafe for CreditBumpError
impl Send for CreditBumpError
impl Sync for CreditBumpError
impl Unpin for CreditBumpError
impl UnsafeUnpin for CreditBumpError
impl UnwindSafe for CreditBumpError
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