pub struct Hardware { /* private fields */ }
Expand description
Defines the host CPU Hardware.
Can later be transformed into a [Coaster hardware][hardware]. [hardware]: ../../hardware/index.html
Implementations§
Trait Implementations§
source§impl IHardware for Hardware
impl IHardware for Hardware
source§fn hardware_type(&self) -> Option<HardwareType>
fn hardware_type(&self) -> Option<HardwareType>
Returns the device_type of the Hardware
source§fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self
fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self
Defines the hardware_type of the Hardware
source§fn compute_units(&self) -> Option<isize>
fn compute_units(&self) -> Option<isize>
Returns the compute_units of the Hardware
source§fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self
fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self
Defines the compute_units of the Hardware
Auto Trait Implementations§
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnwindSafe for Hardware
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