pub struct FailedReservation {
pub estimated_wait: Option<Duration>,
}Expand description
Error returned when a reservation cannot be granted because the resource’s
enforcement policy is reject.
Contains an optional estimated wait time — only available for rate-limited resources where a future refill is predictable.
Fields§
§estimated_wait: Option<Duration>How long the caller would likely need to wait for capacity, if known.
Trait Implementations§
Source§impl Clone for FailedReservation
impl Clone for FailedReservation
Source§fn clone(&self) -> FailedReservation
fn clone(&self) -> FailedReservation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FailedReservation
impl Debug for FailedReservation
Source§impl Display for FailedReservation
impl Display for FailedReservation
Source§impl Error for FailedReservation
impl Error for FailedReservation
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()
Source§impl From<FailedReservation> for FailedReservation
impl From<FailedReservation> for FailedReservation
Source§fn from(raw: FailedReservation) -> Self
fn from(raw: FailedReservation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FailedReservation
impl PartialEq for FailedReservation
impl StructuralPartialEq for FailedReservation
Auto Trait Implementations§
impl Freeze for FailedReservation
impl RefUnwindSafe for FailedReservation
impl Send for FailedReservation
impl Sync for FailedReservation
impl Unpin for FailedReservation
impl UnsafeUnpin for FailedReservation
impl UnwindSafe for FailedReservation
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