pub struct BackendFeatureDetector {
pub available_devices: Vec<DeviceInfo>,
pub runtime_features: RuntimeFeatures,
pub backend_summary: BackendSummary,
}Expand description
Backend feature detection system for runtime capability discovery
Fields§
§available_devices: Vec<DeviceInfo>Available devices discovered at runtime
runtime_features: RuntimeFeaturesRuntime feature flags
backend_summary: BackendSummaryBackend capabilities summary
Implementations§
Source§impl BackendFeatureDetector
impl BackendFeatureDetector
Sourcepub fn best_device_for_workload(
&self,
workload: WorkloadType,
) -> Option<&DeviceInfo>
pub fn best_device_for_workload( &self, workload: WorkloadType, ) -> Option<&DeviceInfo>
Get the best available device for a specific workload type
Sourcepub fn has_feature(&self, feature: &str) -> bool
pub fn has_feature(&self, feature: &str) -> bool
Check if a specific feature is available
Trait Implementations§
Source§impl Clone for BackendFeatureDetector
impl Clone for BackendFeatureDetector
Source§fn clone(&self) -> BackendFeatureDetector
fn clone(&self) -> BackendFeatureDetector
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 BackendFeatureDetector
impl Debug for BackendFeatureDetector
Auto Trait Implementations§
impl Freeze for BackendFeatureDetector
impl RefUnwindSafe for BackendFeatureDetector
impl Send for BackendFeatureDetector
impl Sync for BackendFeatureDetector
impl Unpin for BackendFeatureDetector
impl UnwindSafe for BackendFeatureDetector
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,
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