pub enum RuntimeMemoryError {
Stopped(RuntimeCancellationReason),
ReservationExceeded {
requested_bytes: u64,
available_bytes: u64,
},
AdmissionDenied {
requested_bytes: u64,
available_bytes: u64,
retryable: bool,
},
Closed,
Pressure,
}Variants§
Stopped(RuntimeCancellationReason)
ReservationExceeded
AdmissionDenied
A concrete allocation was denied by its resource ledger. A retryable denial may recover after pressure or retained allocations change.
Closed
Pressure
Trait Implementations§
Source§impl Clone for RuntimeMemoryError
impl Clone for RuntimeMemoryError
impl Copy for RuntimeMemoryError
Source§impl Debug for RuntimeMemoryError
impl Debug for RuntimeMemoryError
Source§impl Display for RuntimeMemoryError
impl Display for RuntimeMemoryError
impl Eq for RuntimeMemoryError
Source§impl Error for RuntimeMemoryError
impl Error for RuntimeMemoryError
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 RuntimeMemoryError
impl PartialEq for RuntimeMemoryError
impl StructuralPartialEq for RuntimeMemoryError
Auto Trait Implementations§
impl Freeze for RuntimeMemoryError
impl RefUnwindSafe for RuntimeMemoryError
impl Send for RuntimeMemoryError
impl Sync for RuntimeMemoryError
impl Unpin for RuntimeMemoryError
impl UnsafeUnpin for RuntimeMemoryError
impl UnwindSafe for RuntimeMemoryError
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