pub struct BackendDevices {
pub accelerator: Accelerator,
pub available: bool,
pub devices: Vec<Device>,
}Expand description
What one backend reports about this machine.
Fields§
§accelerator: AcceleratorThe backend that was asked.
available: boolWhether the backend started at all.
A build can enable a backend the machine has no driver for, and that backend reports no devices because it never ran, not because the machine has no hardware.
devices: Vec<Device>The devices the backend can see, in the order it lists them.
Always empty when available is false.
Trait Implementations§
Source§impl Clone for BackendDevices
impl Clone for BackendDevices
Source§fn clone(&self) -> BackendDevices
fn clone(&self) -> BackendDevices
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 BackendDevices
impl Debug for BackendDevices
impl Eq for BackendDevices
Source§impl PartialEq for BackendDevices
impl PartialEq for BackendDevices
impl StructuralPartialEq for BackendDevices
Auto Trait Implementations§
impl Freeze for BackendDevices
impl RefUnwindSafe for BackendDevices
impl Send for BackendDevices
impl Sync for BackendDevices
impl Unpin for BackendDevices
impl UnsafeUnpin for BackendDevices
impl UnwindSafe for BackendDevices
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.