Trait coaster::hardware::IHardware[][src]

pub trait IHardware {
    fn id(&self) -> isize;
fn name(&self) -> Option<String>;
fn set_name(&mut self, name: Option<String>) -> Self;
fn hardware_type(&self) -> Option<HardwareType>;
fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self;
fn compute_units(&self) -> Option<isize>;
fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self;
fn build(self) -> Self; }
Expand description

Specifies Hardware behavior accross frameworks.

Required methods

Returns the ID of the Hardware

Returns the name of the Hardware

Defines the name of the Hardware

Returns the device_type of the Hardware

Defines the hardware_type of the Hardware

Returns the compute_units of the Hardware

Defines the compute_units of the Hardware

Build an inmutable Hardware

Implementors