pub trait BridgeReadApiServer: Sized + Send + Sync + 'static {
// Required methods
fn get_latest_bridge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<BridgeSummary>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_bridge_object_initial_shared_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn into_rpc(self) -> RpcModule<Self> { ... }
}
Expand description
Server trait implementation for the BridgeReadApi
RPC API.
Required Methods§
sourcefn get_latest_bridge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<BridgeSummary>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_latest_bridge<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<BridgeSummary>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the latest BridgeSummary
Returns the initial shared version of the bridge object, usually for the purpose of constructing an ObjectArg in a transaction.
Provided Methods§
Object Safety§
This trait is not object safe.