pub struct AttentionBudgetSpec {
pub total_capacity: u64,
pub safety_reserve: Option<u64>,
pub exhaustion_threshold: Option<f64>,
}Expand description
Attention allocation specification
Fields§
§total_capacity: u64Total capacity to allocate
safety_reserve: Option<u64>Custom safety reserve (optional)
exhaustion_threshold: Option<f64>Custom exhaustion threshold (optional)
Trait Implementations§
Source§impl Clone for AttentionBudgetSpec
impl Clone for AttentionBudgetSpec
Source§fn clone(&self) -> AttentionBudgetSpec
fn clone(&self) -> AttentionBudgetSpec
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 AttentionBudgetSpec
impl Debug for AttentionBudgetSpec
Source§impl Default for AttentionBudgetSpec
impl Default for AttentionBudgetSpec
Source§impl<'de> Deserialize<'de> for AttentionBudgetSpec
impl<'de> Deserialize<'de> for AttentionBudgetSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AttentionBudgetSpec
impl RefUnwindSafe for AttentionBudgetSpec
impl Send for AttentionBudgetSpec
impl Sync for AttentionBudgetSpec
impl Unpin for AttentionBudgetSpec
impl UnwindSafe for AttentionBudgetSpec
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