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

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; }

Specifies Hardware behavior accross frameworks.

Required methods

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) -> Self

Build an inmutable Hardware

Loading content...

Implementors

impl IHardware for Hardware[src]

Loading content...