Function moras::modules::riscv::middleware::frontend_api::start_share_server

source ยท
pub fn start_share_server(
    cur_tab_name: State<'_, CurTabName>,
    tab_map: State<'_, TabMap>,
    rpc_state: State<'_, RpcState>,
    port: u16,
    password: &str,
) -> Optional
Expand description

Starts the RPC server for the current tab.

  • cur_tab_name: State containing the current tab name.
  • tab_map: State containing the map of all tabs.
  • rpc_state: State containing the RPC server/client.
  • password: Password to be used for the RPC server.

Returns Optional indicating the success or failure of the RPC server