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§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) -> Self
fn from(error: ResourceBudgetError) -> Self
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 Freeze 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