pub trait Api:
Send
+ Sync
+ 'static {
// Required methods
fn submit_authenticated_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticatedTransaction>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockNumber>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn submit_authenticated_tx_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticatedTransactionBatch>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockNumber>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with ApiServer.
Required Methods§
Sourcefn submit_authenticated_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticatedTransaction>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockNumber>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit_authenticated_tx<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticatedTransaction>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockNumber>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submits an already-authenticated transaction directly to the mempool. Returns the node’s current block height.
Sourcefn submit_authenticated_tx_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticatedTransactionBatch>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockNumber>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit_authenticated_tx_batch<'life0, 'async_trait>(
&'life0 self,
request: Request<AuthenticatedTransactionBatch>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockNumber>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submits a batch of already-authenticated transactions directly to the mempool. Returns the node’s current block height.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".