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,

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.

Implementors§