pub trait TClient {
// Required methods
fn get<'life0, 'async_trait, S>(
&'life0 self,
uri: S,
) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>
where S: 'async_trait + Into<String> + Send,
Self: 'async_trait,
'life0: 'async_trait;
fn post<'life0, 'async_trait, S>(
&'life0 self,
uri: S,
) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>
where S: 'async_trait + Into<String> + Send,
Self: 'async_trait,
'life0: 'async_trait;
fn post_json<'life0, 'life1, 'async_trait, S>(
&'life0 self,
uri: S,
body: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>
where S: 'async_trait + Into<String> + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Methods§
fn get<'life0, 'async_trait, S>( &'life0 self, uri: S, ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>
fn post<'life0, 'async_trait, S>( &'life0 self, uri: S, ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>
fn post_json<'life0, 'life1, 'async_trait, S>( &'life0 self, uri: S, body: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Object>> + Send + 'async_trait>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.