pub struct ResourceBudgetError {
pub resource: ResourceBudgetKind,
pub scope: ResourceBudgetScope,
pub owner: String,
pub memory_class: Option<&'static str>,
pub requested: u64,
pub used: u64,
pub budget: u64,
pub budget_option: &'static str,
pub message: String,
}Expand description
A rejected resource reservation. Rejection does not charge the reservation.
requested is the additional charge, not the resulting total. For an
ownership transfer, the query-level charge is the net increase. used and
budget describe the checked boundary in the resource’s units;
used + requested need not fit in u64.
budget_option identifies the configuration option, runtime grant, or
constructor argument defining the effective boundary. Raising a configured
maximum does not widen a smaller runtime grant. A filesystem free-space
reserve is a minimum to preserve, not a maximum to raise.
Fields§
§resource: ResourceBudgetKind§scope: ResourceBudgetScope§owner: String§memory_class: Option<&'static str>§requested: u64§used: u64§budget: u64§budget_option: &'static str§message: StringThe existing execution diagnostic, without its outer error prefix.
Trait Implementations§
Source§impl Clone for ResourceBudgetError
impl Clone for ResourceBudgetError
Source§fn clone(&self) -> ResourceBudgetError
fn clone(&self) -> ResourceBudgetError
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 ResourceBudgetError
impl Debug for ResourceBudgetError
Source§impl Display for ResourceBudgetError
impl Display for ResourceBudgetError
impl Eq for ResourceBudgetError
Source§impl Error for ResourceBudgetError
impl Error for ResourceBudgetError
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<ResourceBudgetError> for HawDBError
impl From<ResourceBudgetError> for HawDBError
Source§fn from(error: ResourceBudgetError) -> HawDBError
fn from(error: ResourceBudgetError) -> HawDBError
Converts to this type from the input type.
Source§impl From<ResourceBudgetError> for SearchQueryError
impl From<ResourceBudgetError> for SearchQueryError
Source§fn from(error: ResourceBudgetError) -> SearchQueryError
fn from(error: ResourceBudgetError) -> SearchQueryError
Converts to this type from the input type.
Source§impl PartialEq for ResourceBudgetError
impl PartialEq for ResourceBudgetError
impl StructuralPartialEq for ResourceBudgetError
Auto Trait Implementations§
impl Forget for ResourceBudgetError
impl Freeze for ResourceBudgetError
impl Move for ResourceBudgetError
impl RefUnwindSafe for ResourceBudgetError
impl Send for ResourceBudgetError
impl Sync for ResourceBudgetError
impl Unpin for ResourceBudgetError
impl UnsafeUnpin for ResourceBudgetError
impl UnwindSafe for ResourceBudgetError
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