pub trait Methods<C>{
// Required method
fn send_request<'life0, 'async_trait, P>(
&'life0 self,
request: String,
) -> Pin<Box<dyn Future<Output = Result<Response<P>, <C as SendRequest>::Error>> + Send + 'async_trait>>
where P: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn process_packet<'life0, 'async_trait>(
&'life0 self,
recipient: Did,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<DwnResponse, Error<<C as SendRequest>::Error>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn debug<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, Error<<C as SendRequest>::Error>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, Error<<C as SendRequest>::Error>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}
Required Methods§
fn send_request<'life0, 'async_trait, P>(
&'life0 self,
request: String,
) -> Pin<Box<dyn Future<Output = Result<Response<P>, <C as SendRequest>::Error>> + Send + 'async_trait>>where
P: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn process_packet<'life0, 'async_trait>(
&'life0 self,
recipient: Did,
payload: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<DwnResponse, Error<<C as SendRequest>::Error>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn debug<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, Error<<C as SendRequest>::Error>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String, Error<<C as SendRequest>::Error>>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: '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.