pub struct NullBudget;Expand description
A no-op budget that always allows. Default in AgentBuilder.
Trait Implementations§
Source§impl BudgetHandle for NullBudget
impl BudgetHandle for NullBudget
fn check<'life0, 'async_trait>(
&'life0 self,
_request: BudgetRequest,
) -> Pin<Box<dyn Future<Output = BudgetDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consume<'life0, 'async_trait>(
&'life0 self,
_amount: BudgetAmount,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn snapshot(&self) -> BudgetSnapshot
Source§impl Clone for NullBudget
impl Clone for NullBudget
Source§fn clone(&self) -> NullBudget
fn clone(&self) -> NullBudget
Returns a duplicate of the value. Read more
1.0.0 · 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 NullBudget
impl Debug for NullBudget
Source§impl Default for NullBudget
impl Default for NullBudget
Source§fn default() -> NullBudget
fn default() -> NullBudget
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NullBudget
impl RefUnwindSafe for NullBudget
impl Send for NullBudget
impl Sync for NullBudget
impl Unpin for NullBudget
impl UnsafeUnpin for NullBudget
impl UnwindSafe for NullBudget
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