pub struct ContextOverBudget {
pub admitted: u32,
pub budget: u32,
}Expand description
The context was over budget — an admitter bug, not a user error.
Fields§
§admitted: u32Total tokens the admitted items came to.
budget: u32The ceiling that was supposed to hold.
Trait Implementations§
Source§impl Debug for ContextOverBudget
impl Debug for ContextOverBudget
Source§impl Display for ContextOverBudget
impl Display for ContextOverBudget
Source§impl Error for ContextOverBudget
impl Error for ContextOverBudget
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<ContextOverBudget> for BoundGraphError
impl From<ContextOverBudget> for BoundGraphError
Source§fn from(source: ContextOverBudget) -> Self
fn from(source: ContextOverBudget) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextOverBudget
impl RefUnwindSafe for ContextOverBudget
impl Send for ContextOverBudget
impl Sync for ContextOverBudget
impl Unpin for ContextOverBudget
impl UnsafeUnpin for ContextOverBudget
impl UnwindSafe for ContextOverBudget
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