web5_rust::dwn::json_rpc

Trait Methods

source
pub trait Methods<C>
where C: SendRequest, Error<<C as SendRequest>::Error>: From<<C as SendRequest>::Error>,
{ // 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§

source

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§

source

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,

source

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,

source

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,

Object Safety§

This trait is not object safe.

Implementors§