pub struct ModelEntry {
pub config: Qwen3Config,
pub model_path: Option<String>,
pub loaded_at: Instant,
pub last_used: Instant,
pub use_count: u64,
pub memory_bytes: usize,
}Expand description
A single cached model entry, storing metadata about a loaded model.
The entry does not own the actual weight tensors; those live in the
InferenceEngine that the cache manages externally. The entry tracks
usage statistics so that the cache can decide which entries to evict.
Fields§
§config: Qwen3ConfigModel configuration extracted from GGUF metadata.
model_path: Option<String>Filesystem path to the GGUF file (if known).
loaded_at: InstantWall-clock time at which this entry was first inserted.
last_used: InstantWall-clock time of the most recent cache hit for this entry.
use_count: u64Cumulative number of times this entry has been returned from the cache.
memory_bytes: usizeEstimated resident-memory footprint of the loaded model.
Implementations§
Source§impl ModelEntry
impl ModelEntry
Auto Trait Implementations§
impl Freeze for ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnsafeUnpin for ModelEntry
impl UnwindSafe for ModelEntry
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more