[−][src]Trait mbus_api::Api
API
Required methods
#[must_use]fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
device: String,
baudrate: Baudrate,
address: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
device: String,
baudrate: Baudrate,
address: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_multi<'life0, 'life1, 'async_trait>(
&'life0 self,
device: String,
baudrate: Baudrate,
address: i32,
maxframes: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetMultiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
device: String,
baudrate: Baudrate,
address: i32,
maxframes: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetMultiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn hat<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn hat_off<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOffResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOffResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn hat_on<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOnResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOnResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn mbus_api<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<MbusApiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<MbusApiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn scan<'life0, 'life1, 'async_trait>(
&'life0 self,
device: String,
baudrate: Baudrate,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ScanResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
device: String,
baudrate: Baudrate,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ScanResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Provided methods
fn poll_ready(
&self,
_cx: &mut Context
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
&self,
_cx: &mut Context
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
Implementors
impl<S, C> Api<C> for Client<S, C> where
S: Service<(Request<Body>, C), Response = Response<Body>> + Clone + Sync + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>> + Display,
C: Has<XSpanIdString> + Clone + Send + Sync + 'static,
[src]
S: Service<(Request<Body>, C), Response = Response<Body>> + Clone + Sync + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn Error + Send + Sync + 'static>> + Display,
C: Has<XSpanIdString> + Clone + Send + Sync + 'static,
fn poll_ready(
&self,
cx: &mut Context
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
[src]
&self,
cx: &mut Context
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
param_device: String,
param_baudrate: Baudrate,
param_address: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
param_device: String,
param_baudrate: Baudrate,
param_address: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_multi<'life0, 'life1, 'async_trait>(
&'life0 self,
param_device: String,
param_baudrate: Baudrate,
param_address: i32,
param_maxframes: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetMultiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
param_device: String,
param_baudrate: Baudrate,
param_address: i32,
param_maxframes: i32,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<GetMultiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn hat<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn hat_off<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOffResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOffResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn hat_on<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOnResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<HatOnResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn mbus_api<'life0, 'life1, 'async_trait>(
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<MbusApiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<MbusApiResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn scan<'life0, 'life1, 'async_trait>(
&'life0 self,
param_device: String,
param_baudrate: Baudrate,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ScanResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
param_device: String,
param_baudrate: Baudrate,
context: &'life1 C
) -> Pin<Box<dyn Future<Output = Result<ScanResponse, ApiError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,