pub struct RecoveryRejected {
pub rejection: RecoveryRejection,
pub requested: Option<f64>,
pub allowed: Option<Range>,
pub answer: RecoveryAnswer,
}Expand description
A recovery’s own refusal, as a caller reads it.
RecoveryRejected::rejection is the refusal itself, matched rather than
read; RecoveryRejected::requested and RecoveryRejected::allowed are
the value that was asked for and the range that is allowed, where a bound
refused it, and absent where something else did.
Fields§
§rejection: RecoveryRejectionWhy the recovery was refused.
requested: Option<f64>The value that was asked for, where a bound refused it.
allowed: Option<Range>The range that is allowed, where a bound refused it.
answer: RecoveryAnswerThe whole answer the refusal arrived in.
Implementations§
Source§impl RecoveryRejected
impl RecoveryRejected
Sourcepub fn of(answer: RecoveryAnswer) -> Option<Self>
pub fn of(answer: RecoveryAnswer) -> Option<Self>
The refusal one recovery answer carries, when it was refused.
Trait Implementations§
Source§impl Clone for RecoveryRejected
impl Clone for RecoveryRejected
Source§impl Debug for RecoveryRejected
impl Debug for RecoveryRejected
Source§impl Display for RecoveryRejected
impl Display for RecoveryRejected
Source§impl PartialEq for RecoveryRejected
impl PartialEq for RecoveryRejected
impl StructuralPartialEq for RecoveryRejected
Auto Trait Implementations§
impl Freeze for RecoveryRejected
impl RefUnwindSafe for RecoveryRejected
impl Send for RecoveryRejected
impl Sync for RecoveryRejected
impl Unpin for RecoveryRejected
impl UnsafeUnpin for RecoveryRejected
impl UnwindSafe for RecoveryRejected
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