pub trait ConfigNamespaceServer:
Sized
+ Send
+ Sync
+ 'static {
// Required methods
fn get_current_timestamp<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_show_storage_logs<'life0, 'async_trait>(
&'life0 self,
value: ShowStorageLogs,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_show_vm_details<'life0, 'async_trait>(
&'life0 self,
value: ShowVMDetails,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_show_gas_details<'life0, 'async_trait>(
&'life0 self,
value: ShowGasDetails,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_show_node_config<'life0, 'async_trait>(
&'life0 self,
value: bool,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_log_level<'life0, 'async_trait>(
&'life0 self,
level: LogLevel,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_logging<'life0, 'async_trait>(
&'life0 self,
directive: String,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + 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 ConfigNamespace
RPC API.
Required Methods§
Sourcefn get_current_timestamp<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_current_timestamp<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RpcResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the InMemoryNodeInner’s current_timestamp property
§Returns
The current current_timestamp
value for the InMemoryNodeInner.
Sourcefn set_show_storage_logs<'life0, 'async_trait>(
&'life0 self,
value: ShowStorageLogs,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_show_storage_logs<'life0, 'async_trait>(
&'life0 self,
value: ShowStorageLogs,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn set_show_vm_details<'life0, 'async_trait>(
&'life0 self,
value: ShowVMDetails,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_show_vm_details<'life0, 'async_trait>(
&'life0 self,
value: ShowVMDetails,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn set_show_gas_details<'life0, 'async_trait>(
&'life0 self,
value: ShowGasDetails,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_show_gas_details<'life0, 'async_trait>(
&'life0 self,
value: ShowGasDetails,
) -> Pin<Box<dyn Future<Output = RpcResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn set_show_node_config<'life0, 'async_trait>(
&'life0 self,
value: bool,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_show_node_config<'life0, 'async_trait>(
&'life0 self,
value: bool,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Sourcefn set_log_level<'life0, 'async_trait>(
&'life0 self,
level: LogLevel,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn set_log_level<'life0, 'async_trait>(
&'life0 self,
level: LogLevel,
) -> Pin<Box<dyn Future<Output = RpcResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.