Enum LinkerQuoteError
#[non_exhaustive]pub enum LinkerQuoteError {
WrongFamily {
convention: LinkerConvention,
family: &'static str,
},
Solve(YieldSolveError),
Curve(CurveError),
AmortisingRealTwin,
}Expand description
A street quote asked of a market that does not serve it, or that could not be produced.
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.
WrongFamily
The bond’s convention is outside the family this entry point serves.
Fields
§
convention: LinkerConventionThe convention the bond carries.
Solve(YieldSolveError)
The quote could not be inverted to a yield.
Curve(CurveError)
A curve or index query failed.
AmortisingRealTwin
The real twin pays principal down: the sovereign street conventions quote a bullet by construction and have no form for an amortiser.
Implementations§
§impl LinkerQuoteError
impl LinkerQuoteError
pub fn is_unsolved(&self) -> bool
pub fn is_unsolved(&self) -> bool
Whether the quote could not be inverted to a yield. Exhaustive.
Trait Implementations§
§impl Clone for LinkerQuoteError
impl Clone for LinkerQuoteError
§fn clone(&self) -> LinkerQuoteError
fn clone(&self) -> LinkerQuoteError
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 LinkerQuoteError
impl Debug for LinkerQuoteError
§impl Display for LinkerQuoteError
impl Display for LinkerQuoteError
§impl Error for LinkerQuoteError
impl Error for LinkerQuoteError
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 From<CurveError> for LinkerQuoteError
impl From<CurveError> for LinkerQuoteError
§fn from(e: CurveError) -> Self
fn from(e: CurveError) -> Self
Converts to this type from the input type.
§impl From<YieldSolveError> for LinkerQuoteError
impl From<YieldSolveError> for LinkerQuoteError
§fn from(e: YieldSolveError) -> Self
fn from(e: YieldSolveError) -> Self
Converts to this type from the input type.
§impl PartialEq for LinkerQuoteError
impl PartialEq for LinkerQuoteError
§fn eq(&self, other: &LinkerQuoteError) -> bool
fn eq(&self, other: &LinkerQuoteError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LinkerQuoteError
Auto Trait Implementations§
impl Freeze for LinkerQuoteError
impl RefUnwindSafe for LinkerQuoteError
impl Send for LinkerQuoteError
impl Sync for LinkerQuoteError
impl Unpin for LinkerQuoteError
impl UnsafeUnpin for LinkerQuoteError
impl UnwindSafe for LinkerQuoteError
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