pub struct ReservationError { /* private fields */ }Expand description
An allocation reservation would exceed the aggregate lease allowance.
Refusal does not change accounting. Callers must refuse, spill, or retry without allocating the payload they could not reserve.
Implementations§
Source§impl ReservationError
impl ReservationError
Sourcepub const fn requested_bytes(self) -> u64
pub const fn requested_bytes(self) -> u64
Bytes the caller attempted to reserve.
Sourcepub const fn reserved_bytes(self) -> u64
pub const fn reserved_bytes(self) -> u64
Outstanding bytes observed when admission was refused.
Sourcepub const fn capacity_bytes(self) -> u64
pub const fn capacity_bytes(self) -> u64
Maximum aggregate reservation capacity.
Trait Implementations§
Source§impl Clone for ReservationError
impl Clone for ReservationError
impl Copy for ReservationError
Source§impl Debug for ReservationError
impl Debug for ReservationError
Source§impl Display for ReservationError
impl Display for ReservationError
impl Eq for ReservationError
Source§impl Error for ReservationError
impl Error for ReservationError
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 PartialEq for ReservationError
impl PartialEq for ReservationError
impl StructuralPartialEq for ReservationError
Auto Trait Implementations§
impl Forget for ReservationError
impl Freeze for ReservationError
impl Move for ReservationError
impl RefUnwindSafe for ReservationError
impl Send for ReservationError
impl Sync for ReservationError
impl Unpin for ReservationError
impl UnsafeUnpin for ReservationError
impl UnwindSafe for ReservationError
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