Enum RateFutureError
#[non_exhaustive]pub enum RateFutureError {
OffCycleMonth {
template: String,
month: u32,
},
NoSuchMonth {
year: i32,
month: u32,
},
}Expand description
Why a listed rate-future contract could not be booked.
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.
OffCycleMonth
A quarterly template was asked for a month off its March–June– September–December cycle.
NoSuchMonth
The delivery year and month name no date.
Trait Implementations§
§impl Clone for RateFutureError
impl Clone for RateFutureError
§fn clone(&self) -> RateFutureError
fn clone(&self) -> RateFutureError
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 RateFutureError
impl Debug for RateFutureError
§impl Display for RateFutureError
impl Display for RateFutureError
impl Eq for RateFutureError
§impl Error for RateFutureError
impl Error for RateFutureError
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 RateFutureError
impl PartialEq for RateFutureError
impl StructuralPartialEq for RateFutureError
Auto Trait Implementations§
impl Freeze for RateFutureError
impl RefUnwindSafe for RateFutureError
impl Send for RateFutureError
impl Sync for RateFutureError
impl Unpin for RateFutureError
impl UnsafeUnpin for RateFutureError
impl UnwindSafe for RateFutureError
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