pub async fn api_startup_config(
    update_callback: UpdateCallback,
    config: VeilidConfigInner
) -> VeilidAPIResult<VeilidAPI>
Expand description

Initialize a Veilid node, with the configuration object

Must be called only once at the start of an application

  • update_callback - called when internal state of the Veilid node changes, for example, when app-level messages are received, when private routes die and need to be reallocated, or when routing table states change
  • config - called at startup to supply a configuration object

Returns a VeilidAPI object that can be used to operate the node