Struct coaster::frameworks::native::hardware::Hardware
[−]
[src]
pub struct Hardware { /* fields omitted */ }
Defines the host CPU Hardware.
Can later be transformed into a Coaster hardware.
Methods
impl Hardware
[src]
Trait Implementations
impl Debug for Hardware
[src]
impl Clone for Hardware
[src]
fn clone(&self) -> Hardware
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for Hardware
[src]
impl IHardware for Hardware
[src]
fn id(&self) -> isize
Returns the ID of the Hardware
fn name(&self) -> Option<String>
Returns the name of the Hardware
fn set_name(&mut self, name: Option<String>) -> Self
Defines the name of the Hardware
fn hardware_type(&self) -> Option<HardwareType>
Returns the device_type of the Hardware
fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self
Defines the hardware_type of the Hardware
fn compute_units(&self) -> Option<isize>
Returns the compute_units of the Hardware
fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self
Defines the compute_units of the Hardware
fn build(self) -> Hardware
Build an inmutable Hardware