pub enum MemoryReservationError {
BudgetExceeded {
context: Box<str>,
requested_bytes: usize,
reserved_bytes: usize,
budget_bytes: usize,
availability: MemoryAvailability,
},
SizeOverflow {
context: Box<str>,
nrows: usize,
ncols: usize,
copies: usize,
},
}Expand description
Typed refusal from MemoryGovernor::try_reserve.
Carries the full ledger evidence so callers can route to a chunked or matrix-free strategy (and so error messages explain why dense was refused). This is a routing signal, never an abort: the process still has its unreserved headroom, the requested allocation just does not fit the joint budget.
Variants§
Trait Implementations§
Source§impl Clone for MemoryReservationError
impl Clone for MemoryReservationError
Source§fn clone(&self) -> MemoryReservationError
fn clone(&self) -> MemoryReservationError
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 moreSource§impl Debug for MemoryReservationError
impl Debug for MemoryReservationError
Source§impl Display for MemoryReservationError
impl Display for MemoryReservationError
impl Eq for MemoryReservationError
Source§impl Error for MemoryReservationError
impl Error for MemoryReservationError
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<MemoryReservationError> for MatrixMaterializationError
impl From<MemoryReservationError> for MatrixMaterializationError
Source§fn from(source: MemoryReservationError) -> Self
fn from(source: MemoryReservationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryReservationError
impl PartialEq for MemoryReservationError
impl StructuralPartialEq for MemoryReservationError
Auto Trait Implementations§
impl Freeze for MemoryReservationError
impl RefUnwindSafe for MemoryReservationError
impl Send for MemoryReservationError
impl Sync for MemoryReservationError
impl Unpin for MemoryReservationError
impl UnsafeUnpin for MemoryReservationError
impl UnwindSafe for MemoryReservationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more