pub struct KvBudgetError {
pub binding: Ceiling,
pub estimated_bytes: u64,
pub limit_bytes: u64,
pub detail: String,
}Expand description
A structured refusal: what it would have cost, what the ceiling was, and which ceiling. Deliberately not an allocation failure – the whole point of computing this before the load is that nobody has to read an OOM to find out.
Fields§
§binding: Ceiling§estimated_bytes: u64§limit_bytes: u64§detail: StringImplementations§
Source§impl KvBudgetError
impl KvBudgetError
Trait Implementations§
Source§impl Clone for KvBudgetError
impl Clone for KvBudgetError
Source§fn clone(&self) -> KvBudgetError
fn clone(&self) -> KvBudgetError
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 KvBudgetError
impl Debug for KvBudgetError
Source§impl Display for KvBudgetError
impl Display for KvBudgetError
impl Eq for KvBudgetError
Source§impl Error for KvBudgetError
impl Error for KvBudgetError
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 KvBudgetError
impl PartialEq for KvBudgetError
impl StructuralPartialEq for KvBudgetError
Auto Trait Implementations§
impl Freeze for KvBudgetError
impl RefUnwindSafe for KvBudgetError
impl Send for KvBudgetError
impl Sync for KvBudgetError
impl Unpin for KvBudgetError
impl UnsafeUnpin for KvBudgetError
impl UnwindSafe for KvBudgetError
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