Enum ReservationOutcome
pub enum ReservationOutcome {
Exhausted,
Created(TrialReservation),
}Expand description
The result of an atomic budget reservation.
Variants§
Exhausted
The durable created-record budget is already exhausted.
Created(TrialReservation)
A waiting trial was durably created and reserved for the caller.
Trait Implementations§
§impl Clone for ReservationOutcome
impl Clone for ReservationOutcome
§fn clone(&self) -> ReservationOutcome
fn clone(&self) -> ReservationOutcome
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 moreimpl Copy for ReservationOutcome
§impl Debug for ReservationOutcome
impl Debug for ReservationOutcome
impl Eq for ReservationOutcome
§impl PartialEq for ReservationOutcome
impl PartialEq for ReservationOutcome
impl StructuralPartialEq for ReservationOutcome
Auto Trait Implementations§
impl Freeze for ReservationOutcome
impl RefUnwindSafe for ReservationOutcome
impl Send for ReservationOutcome
impl Sync for ReservationOutcome
impl Unpin for ReservationOutcome
impl UnsafeUnpin for ReservationOutcome
impl UnwindSafe for ReservationOutcome
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