[][src]Trait remote_hal::manager::Manager

pub trait Manager {
type Spi;
type I2c;
type Pin;
    fn spi(
        &mut self,
        path: &str,
        baud: u32,
        mode: SpiMode
    ) -> Box<dyn Future<Item = Self::Spi, Error = Error> + Send>;
fn pin(
        &mut self,
        path: &str,
        mode: PinMode
    ) -> Box<dyn Future<Item = Self::Pin, Error = Error> + Send>;
fn i2c(
        &mut self,
        path: &str
    ) -> Box<dyn Future<Item = Self::I2c, Error = Error> + Send>; }

Associated Types

type Spi

type I2c

type Pin

Loading content...

Required methods

fn spi(
    &mut self,
    path: &str,
    baud: u32,
    mode: SpiMode
) -> Box<dyn Future<Item = Self::Spi, Error = Error> + Send>

fn pin(
    &mut self,
    path: &str,
    mode: PinMode
) -> Box<dyn Future<Item = Self::Pin, Error = Error> + Send>

fn i2c(
    &mut self,
    path: &str
) -> Box<dyn Future<Item = Self::I2c, Error = Error> + Send>

Loading content...

Implementors

impl Manager for remote_hal::local::Client[src]

type Spi = Spi

type Pin = Pin

type I2c = I2c

fn spi(
    &mut self,
    path: &str,
    baud: u32,
    mode: SpiMode
) -> Box<dyn Future<Item = Spi, Error = Error> + Send>
[src]

Connect to a new Spi instance

fn pin(
    &mut self,
    path: &str,
    mode: PinMode
) -> Box<dyn Future<Item = Pin, Error = Error> + Send>
[src]

Connect to a new Pin instance

fn i2c(
    &mut self,
    path: &str
) -> Box<dyn Future<Item = I2c, Error = Error> + Send>
[src]

Connect to a new I2c instance

impl Manager for remote_hal::remote::Client[src]

type Spi = Spi

type Pin = Pin

type I2c = I2c

fn spi(
    &mut self,
    path: &str,
    baud: u32,
    mode: SpiMode
) -> Box<dyn Future<Item = Spi, Error = Error> + Send>
[src]

Connect to a new Spi instance

fn pin(
    &mut self,
    path: &str,
    mode: PinMode
) -> Box<dyn Future<Item = Pin, Error = Error> + Send>
[src]

Connect to a new Pin instance

fn i2c(
    &mut self,
    path: &str
) -> Box<dyn Future<Item = I2c, Error = Error> + Send>
[src]

Connect to a new I2c instance

Loading content...