pub trait RollupNodeServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn op_output_at_block<'life0, 'async_trait>(
&'life0 self,
block_number: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = RpcResult<OutputResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn op_safe_head_at_l1_block<'life0, 'async_trait>(
&'life0 self,
block_number: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = RpcResult<SafeHeadResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn op_sync_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<SyncStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn op_rollup_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<RollupConfig>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn op_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + 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 RollupNode
RPC API.
Required Methods§
Sourcefn op_output_at_block<'life0, 'async_trait>(
&'life0 self,
block_number: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = RpcResult<OutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn op_output_at_block<'life0, 'async_trait>(
&'life0 self,
block_number: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = RpcResult<OutputResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the output root at a specific block.
Sourcefn op_safe_head_at_l1_block<'life0, 'async_trait>(
&'life0 self,
block_number: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = RpcResult<SafeHeadResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn op_safe_head_at_l1_block<'life0, 'async_trait>(
&'life0 self,
block_number: BlockNumberOrTag,
) -> Pin<Box<dyn Future<Output = RpcResult<SafeHeadResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets the safe head at an L1 block height.
Sourcefn op_sync_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<SyncStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn op_sync_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<SyncStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the synchronization status.
Sourcefn op_rollup_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<RollupConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn op_rollup_config<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<RollupConfig>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the rollup configuration parameters.
Provided Methods§
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.