pub struct AllocatedResources {
pub kv_cache_blocks: Vec<BlockId>,
pub gpu_memory: u64,
pub cpu_memory: u64,
pub compute_units: usize,
}Expand description
Allocated resources for a request
Fields§
§kv_cache_blocks: Vec<BlockId>KV cache blocks allocated
gpu_memory: u64GPU memory allocated (bytes)
cpu_memory: u64CPU memory allocated (bytes)
compute_units: usizeCompute units reserved
Trait Implementations§
Source§impl Clone for AllocatedResources
impl Clone for AllocatedResources
Source§fn clone(&self) -> AllocatedResources
fn clone(&self) -> AllocatedResources
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 AllocatedResources
impl Debug for AllocatedResources
Source§impl Default for AllocatedResources
impl Default for AllocatedResources
Source§fn default() -> AllocatedResources
fn default() -> AllocatedResources
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllocatedResources
impl RefUnwindSafe for AllocatedResources
impl Send for AllocatedResources
impl Sync for AllocatedResources
impl Unpin for AllocatedResources
impl UnsafeUnpin for AllocatedResources
impl UnwindSafe for AllocatedResources
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