pub struct HardwareBackendProfile {
pub backend: BackendId,
pub available: bool,
pub detail: Option<String>,
pub devices: Vec<HardwareDeviceProfile>,
}Expand description
Availability and devices for one execution backend.
Fields§
§backend: BackendIdBackend identity.
available: boolWhether the runtime can execute through this backend.
detail: Option<String>Reason discovery could not establish availability.
devices: Vec<HardwareDeviceProfile>Devices which discovery can enumerate without guessing.
Trait Implementations§
Source§impl Clone for HardwareBackendProfile
impl Clone for HardwareBackendProfile
Source§fn clone(&self) -> HardwareBackendProfile
fn clone(&self) -> HardwareBackendProfile
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 HardwareBackendProfile
impl Debug for HardwareBackendProfile
Source§impl<'de> Deserialize<'de> for HardwareBackendProfile
impl<'de> Deserialize<'de> for HardwareBackendProfile
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 HardwareBackendProfile
Source§impl PartialEq for HardwareBackendProfile
impl PartialEq for HardwareBackendProfile
Source§impl Serialize for HardwareBackendProfile
impl Serialize for HardwareBackendProfile
impl StructuralPartialEq for HardwareBackendProfile
Auto Trait Implementations§
impl Freeze for HardwareBackendProfile
impl RefUnwindSafe for HardwareBackendProfile
impl Send for HardwareBackendProfile
impl Sync for HardwareBackendProfile
impl Unpin for HardwareBackendProfile
impl UnsafeUnpin for HardwareBackendProfile
impl UnwindSafe for HardwareBackendProfile
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