pub struct SoftwareCapabilities {
pub os: String,
pub os_version: String,
pub runtimes: Vec<(String, String)>,
pub frameworks: Vec<(String, String)>,
pub cuda_version: Option<String>,
pub drivers: Vec<(String, String)>,
}Expand description
Software/runtime capabilities
Fields§
§os: StringOperating system
os_version: StringOS version
runtimes: Vec<(String, String)>Runtime versions (e.g., “python:3.11”, “node:20”)
frameworks: Vec<(String, String)>Installed frameworks (e.g., “pytorch:2.1”, “tensorflow:2.15”)
cuda_version: Option<String>CUDA version (if applicable)
drivers: Vec<(String, String)>Driver versions
Implementations§
Source§impl SoftwareCapabilities
impl SoftwareCapabilities
Sourcepub fn add_runtime(
self,
name: impl Into<String>,
version: impl Into<String>,
) -> Self
pub fn add_runtime( self, name: impl Into<String>, version: impl Into<String>, ) -> Self
Add runtime
Sourcepub fn add_framework(
self,
name: impl Into<String>,
version: impl Into<String>,
) -> Self
pub fn add_framework( self, name: impl Into<String>, version: impl Into<String>, ) -> Self
Add framework
Sourcepub fn has_runtime(&self, name: &str) -> bool
pub fn has_runtime(&self, name: &str) -> bool
Check if has a specific runtime
Sourcepub fn has_framework(&self, name: &str) -> bool
pub fn has_framework(&self, name: &str) -> bool
Check if has a specific framework
Trait Implementations§
Source§impl Clone for SoftwareCapabilities
impl Clone for SoftwareCapabilities
Source§fn clone(&self) -> SoftwareCapabilities
fn clone(&self) -> SoftwareCapabilities
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 moreSource§impl Debug for SoftwareCapabilities
impl Debug for SoftwareCapabilities
Source§impl Default for SoftwareCapabilities
impl Default for SoftwareCapabilities
Source§fn default() -> SoftwareCapabilities
fn default() -> SoftwareCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SoftwareCapabilities
impl<'de> Deserialize<'de> for SoftwareCapabilities
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
impl Eq for SoftwareCapabilities
Source§impl From<&CapabilitySet> for SoftwareCapabilities
impl From<&CapabilitySet> for SoftwareCapabilities
Source§fn from(caps: &CapabilitySet) -> Self
fn from(caps: &CapabilitySet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SoftwareCapabilities
impl PartialEq for SoftwareCapabilities
Source§fn eq(&self, other: &SoftwareCapabilities) -> bool
fn eq(&self, other: &SoftwareCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SoftwareCapabilities
impl Serialize for SoftwareCapabilities
impl StructuralPartialEq for SoftwareCapabilities
Auto Trait Implementations§
impl Freeze for SoftwareCapabilities
impl RefUnwindSafe for SoftwareCapabilities
impl Send for SoftwareCapabilities
impl Sync for SoftwareCapabilities
impl Unpin for SoftwareCapabilities
impl UnsafeUnpin for SoftwareCapabilities
impl UnwindSafe for SoftwareCapabilities
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.