pub struct RunningModel {
pub name: String,
pub vram_used: Option<u64>,
pub gpu_ids: Vec<u32>,
}Expand description
Information about a currently running/loaded model.
Fields§
§name: StringModel name.
vram_used: Option<u64>VRAM used in bytes (if available).
gpu_ids: Vec<u32>GPU IDs this model is loaded on.
Implementations§
Trait Implementations§
Source§impl Clone for RunningModel
impl Clone for RunningModel
Source§fn clone(&self) -> RunningModel
fn clone(&self) -> RunningModel
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 RunningModel
impl Debug for RunningModel
Source§impl<'de> Deserialize<'de> for RunningModel
impl<'de> Deserialize<'de> for RunningModel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunningModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunningModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RunningModel
impl Display for RunningModel
Source§impl PartialEq for RunningModel
impl PartialEq for RunningModel
Source§impl Serialize for RunningModel
impl Serialize for RunningModel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for RunningModel
impl StructuralPartialEq for RunningModel
Auto Trait Implementations§
impl Freeze for RunningModel
impl RefUnwindSafe for RunningModel
impl Send for RunningModel
impl Sync for RunningModel
impl Unpin for RunningModel
impl UnsafeUnpin for RunningModel
impl UnwindSafe for RunningModel
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