pub struct SglangCacheState<'a> {
pub event: &'a str,
pub dp_rank: u32,
pub num_tokens: usize,
pub page_size: usize,
pub available_tokens: usize,
pub evictable_tokens: usize,
pub protected_tokens: usize,
pub total_tokens: usize,
}Expand description
SGLang cache state snapshot for trace logging.
Fields§
§event: &'a str§dp_rank: u32§num_tokens: usize§page_size: usize§available_tokens: usize§evictable_tokens: usize§protected_tokens: usize§total_tokens: usizeAuto Trait Implementations§
impl<'a> Freeze for SglangCacheState<'a>
impl<'a> RefUnwindSafe for SglangCacheState<'a>
impl<'a> Send for SglangCacheState<'a>
impl<'a> Sync for SglangCacheState<'a>
impl<'a> Unpin for SglangCacheState<'a>
impl<'a> UnsafeUnpin for SglangCacheState<'a>
impl<'a> UnwindSafe for SglangCacheState<'a>
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