pub trait TransactionBroadcastApiServer: Sized + Send + Sync + 'static {
// Required methods
fn broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
ext: &'life1 Extensions,
bytes: Bytes,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<String>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn stop_broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
ext: &'life1 Extensions,
operation_id: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorBroadcast>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the TransactionBroadcastApi
RPC API.
Required Methods§
sourcefn broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
ext: &'life1 Extensions,
bytes: Bytes,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
ext: &'life1 Extensions,
bytes: Bytes,
) -> Pin<Box<dyn Future<Output = RpcResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Broadcast an extrinsic to the chain.
§Unstable
This method is unstable and subject to change in the future.
sourcefn stop_broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
ext: &'life1 Extensions,
operation_id: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorBroadcast>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stop_broadcast<'life0, 'life1, 'async_trait>(
&'life0 self,
ext: &'life1 Extensions,
operation_id: String,
) -> Pin<Box<dyn Future<Output = Result<(), ErrorBroadcast>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Broadcast an extrinsic to the chain.
§Unstable
This method is unstable and subject to change in the future.
Provided Methods§
Object Safety§
This trait is not object safe.