pub trait ArbApiServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn maintenance_status(&self) -> RpcResult<ArbMaintenanceStatus>;
fn check_publisher_health(&self) -> RpcResult<()>;
fn get_block_info<'life0, 'async_trait>(
&'life0 self,
block_num: u64,
) -> Pin<Box<dyn Future<Output = RpcResult<ArbBlockInfo>> + 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 ArbApi RPC API.
Required Methods§
Sourcefn maintenance_status(&self) -> RpcResult<ArbMaintenanceStatus>
fn maintenance_status(&self) -> RpcResult<ArbMaintenanceStatus>
Returns the maintenance status of the node.
Sourcefn check_publisher_health(&self) -> RpcResult<()>
fn check_publisher_health(&self) -> RpcResult<()>
Checks publisher health. Returns an error if unhealthy.
Sourcefn get_block_info<'life0, 'async_trait>(
&'life0 self,
block_num: u64,
) -> Pin<Box<dyn Future<Output = RpcResult<ArbBlockInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_block_info<'life0, 'async_trait>(
&'life0 self,
block_num: u64,
) -> Pin<Box<dyn Future<Output = RpcResult<ArbBlockInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns block info for the given block number.
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.