pub struct ModelEntry {
pub state: ModelLoadState,
pub info: Option<ModelInfo>,
pub error: Option<String>,
pub notify: Arc<Notify>,
pub resolved: Option<ResolvedModel>,
pub bytes_downloaded: Option<u64>,
pub bytes_total: Option<u64>,
pub activation_waiters: Vec<Sender<Result<(), String>>>,
}Expand description
Entry in the model registry tracking a model’s state.
Fields§
§state: ModelLoadState§info: Option<ModelInfo>§error: Option<String>§notify: Arc<Notify>§resolved: Option<ResolvedModel>§bytes_downloaded: Option<u64>§bytes_total: Option<u64>§activation_waiters: Vec<Sender<Result<(), String>>>Activation completion waiters (set when ACTIVATING)
Trait Implementations§
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