pub trait ConfigurationApiNamespaceT: Sized + Send + Sync + 'static {
    // Required methods
    fn config_get_show_calls(&self) -> Result<String>;
    fn config_get_show_outputs(&self) -> Result<bool>;
    fn config_get_current_timestamp(&self) -> Result<u64>;
    fn config_set_show_calls(&self, value: String) -> Result<String>;
    fn config_set_show_outputs(&self, value: bool) -> Result<bool>;
    fn config_set_show_storage_logs(&self, value: String) -> Result<String>;
    fn config_set_show_vm_details(&self, value: String) -> Result<String>;
    fn config_set_show_gas_details(&self, value: String) -> Result<String>;
    fn config_set_resolve_hashes(&self, value: bool) -> Result<bool>;
    fn config_set_log_level(&self, level: LogLevel) -> Result<bool>;
    fn config_set_logging(&self, directive: String) -> Result<bool>;

    // Provided method
    fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... }
}

Required Methods§

source

fn config_get_show_calls(&self) -> Result<String>

Get the InMemoryNodeInner’s show_calls property as a string

Returns

The current show_calls value for the InMemoryNodeInner.

source

fn config_get_show_outputs(&self) -> Result<bool>

Get the InMemoryNodeInner’s show_outputs property as a boolean

Returns

The current show_outputs value for the InMemoryNodeInner.

source

fn config_get_current_timestamp(&self) -> Result<u64>

Get the InMemoryNodeInner’s current_timestamp property

Returns

The current current_timestamp value for the InMemoryNodeInner.

source

fn config_set_show_calls(&self, value: String) -> Result<String>

Set show_calls for the InMemoryNodeInner

Parameters
  • value: A ShowCalls enum to update show_calls to
Returns

The updated/current show_calls value for the InMemoryNodeInner.

source

fn config_set_show_outputs(&self, value: bool) -> Result<bool>

Set show_outputs for the InMemoryNodeInner

Parameters
  • value: a bool value to update show_outputs to
Returns

The updated/current show_outputs value for the InMemoryNodeInner.

source

fn config_set_show_storage_logs(&self, value: String) -> Result<String>

Set show_storage_logs for the InMemoryNodeInner

Parameters
  • value: A ShowStorageLogs enum to update show_storage_logs to
Returns

The updated/current show_storage_logs value for the InMemoryNodeInner.

source

fn config_set_show_vm_details(&self, value: String) -> Result<String>

Set show_vm_details for the InMemoryNodeInner

Parameters
  • value: A ShowVMDetails enum to update show_vm_details to
Returns

The updated/current show_vm_details value for the InMemoryNodeInner.

source

fn config_set_show_gas_details(&self, value: String) -> Result<String>

Set show_gas_details for the InMemoryNodeInner

Parameters
  • value: A ShowGasDetails enum to update show_gas_details to
Returns

The updated/current show_gas_details value for the InMemoryNodeInner.

source

fn config_set_resolve_hashes(&self, value: bool) -> Result<bool>

Set resolve_hashes for the InMemoryNodeInner

Parameters
  • value: A bool to update resolve_hashes to
Returns

The updated resolve_hashes value for the InMemoryNodeInner.

source

fn config_set_log_level(&self, level: LogLevel) -> Result<bool>

Set the logging for the InMemoryNodeInner

Parameters
  • level: The log level to set. One of: [“trace”, “debug”, “info”, “warn”, “error”]
Returns

true if the operation succeeded, false otherwise.

source

fn config_set_logging(&self, directive: String) -> Result<bool>

Set the logging for the InMemoryNodeInner

Parameters
  • level: The logging directive to set. Example:
    • “my_crate=debug”
    • “my_crate::module=trace”
    • “my_crate=debug,other_crate=warn”
Returns

true if the operation succeeded, false otherwise.

Provided Methods§

source

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>

Create an IoDelegate, wiring rpc calls to the trait methods.

Object Safety§

This trait is not object safe.

Implementors§