pub struct MachineProfile {
pub version: u32,
pub hardware: Hardware,
pub roles: BTreeMap<Role, u64>,
pub adaptations: Adaptations,
pub model_files: u64,
pub updated_ms: u64,
}Fields§
§version: u32§hardware: Hardware§roles: BTreeMap<Role, u64>Role → last observed (ms).
adaptations: Adaptations§model_files: u64Model files found in the configured folders (count only; names are not stored).
updated_ms: u64Trait Implementations§
Source§impl Clone for MachineProfile
impl Clone for MachineProfile
Source§impl Debug for MachineProfile
impl Debug for MachineProfile
Source§impl Default for MachineProfile
impl Default for MachineProfile
Source§impl<'de> Deserialize<'de> for MachineProfilewhere
MachineProfile: Default,
impl<'de> Deserialize<'de> for MachineProfilewhere
MachineProfile: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MachineProfile
impl PartialEq for MachineProfile
Source§impl Serialize for MachineProfile
impl Serialize for MachineProfile
impl StructuralPartialEq for MachineProfile
Auto Trait Implementations§
impl Forget for MachineProfile
impl Freeze for MachineProfilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<GpuInfo>: Freeze,
*const LeafNode<Role, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(Role, u64)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for MachineProfile
impl RefUnwindSafe for MachineProfile
impl Send for MachineProfile
impl Sync for MachineProfile
impl Unpin for MachineProfile
impl UnsafeUnpin for MachineProfilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<GpuInfo>: UnsafeUnpin,
*const LeafNode<Role, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(Role, u64)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for MachineProfile
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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