pub struct RecurrentStateHandleStats {
pub memory_bytes: usize,
pub state_tensors: usize,
pub batch_slots: usize,
pub last_access: Instant,
}Expand description
Statistics for one recurrent-state handle.
Fields§
§memory_bytes: usizeTotal memory used by this handle.
state_tensors: usizeNumber of state tensors represented by this handle.
batch_slots: usizeNumber of request/batch slots reserved by this handle.
last_access: InstantLast access timestamp for eviction policies.
Trait Implementations§
Source§impl Clone for RecurrentStateHandleStats
impl Clone for RecurrentStateHandleStats
Source§fn clone(&self) -> RecurrentStateHandleStats
fn clone(&self) -> RecurrentStateHandleStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecurrentStateHandleStats
impl RefUnwindSafe for RecurrentStateHandleStats
impl Send for RecurrentStateHandleStats
impl Sync for RecurrentStateHandleStats
impl Unpin for RecurrentStateHandleStats
impl UnsafeUnpin for RecurrentStateHandleStats
impl UnwindSafe for RecurrentStateHandleStats
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