pub struct DeviceCandidate {
pub device: Device,
pub label: &'static str,
pub available: bool,
pub registered: bool,
pub supports_graph: bool,
pub recommended: bool,
pub blocker: Option<String>,
pub capabilities: Vec<&'static str>,
}Expand description
One row of backend introspection for UIs and logs.
Fields§
§device: Device§label: &'static str§available: bool§registered: bool§supports_graph: bool§recommended: bool§blocker: Option<String>§capabilities: Vec<&'static str>Advisory feature names this device’s executables typically expose
(see crate::ExecutableCapabilities). Confirmed after compile via
crate::ExecutableGraph::capabilities.
Trait Implementations§
Source§impl Clone for DeviceCandidate
impl Clone for DeviceCandidate
Source§fn clone(&self) -> DeviceCandidate
fn clone(&self) -> DeviceCandidate
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 DeviceCandidate
impl Debug for DeviceCandidate
Source§impl PartialEq for DeviceCandidate
impl PartialEq for DeviceCandidate
impl StructuralPartialEq for DeviceCandidate
Auto Trait Implementations§
impl Freeze for DeviceCandidate
impl RefUnwindSafe for DeviceCandidate
impl Send for DeviceCandidate
impl Sync for DeviceCandidate
impl Unpin for DeviceCandidate
impl UnsafeUnpin for DeviceCandidate
impl UnwindSafe for DeviceCandidate
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