[][src]Trait mbus_api::Api

pub trait Api<C> {
    fn get(
        &self,
        device: String,
        baudrate: Baudrate,
        address: i32,
        context: &C
    ) -> Box<dyn Future<Item = GetResponse, Error = ApiError> + Send>;
fn hat(
        &self,
        context: &C
    ) -> Box<dyn Future<Item = HatResponse, Error = ApiError> + Send>;
fn hat_off(
        &self,
        context: &C
    ) -> Box<dyn Future<Item = HatOffResponse, Error = ApiError> + Send>;
fn hat_on(
        &self,
        context: &C
    ) -> Box<dyn Future<Item = HatOnResponse, Error = ApiError> + Send>;
fn mbus_api(
        &self,
        context: &C
    ) -> Box<dyn Future<Item = MbusApiResponse, Error = ApiError> + Send>;
fn scan(
        &self,
        device: String,
        baudrate: Baudrate,
        context: &C
    ) -> Box<dyn Future<Item = ScanResponse, Error = ApiError> + Send>; }

API

Required methods

fn get(
    &self,
    device: String,
    baudrate: Baudrate,
    address: i32,
    context: &C
) -> Box<dyn Future<Item = GetResponse, Error = ApiError> + Send>

fn hat(
    &self,
    context: &C
) -> Box<dyn Future<Item = HatResponse, Error = ApiError> + Send>

fn hat_off(
    &self,
    context: &C
) -> Box<dyn Future<Item = HatOffResponse, Error = ApiError> + Send>

fn hat_on(
    &self,
    context: &C
) -> Box<dyn Future<Item = HatOnResponse, Error = ApiError> + Send>

fn mbus_api(
    &self,
    context: &C
) -> Box<dyn Future<Item = MbusApiResponse, Error = ApiError> + Send>

fn scan(
    &self,
    device: String,
    baudrate: Baudrate,
    context: &C
) -> Box<dyn Future<Item = ScanResponse, Error = ApiError> + Send>

Loading content...

Implementors

impl<C, F> Api<C> for Client<F> where
    C: Has<XSpanIdString>,
    F: Future<Item = Response<Body>, Error = Error> + Send + 'static, 
[src]

Loading content...