pub async fn run(
identity: Arc<Identity>,
db: Db,
encryption: Option<StorageEncryption>,
port: u16,
web_port: u16,
) -> Result<()>Expand description
Runs the application in client mode.
This function initializes and runs all the components required for the client to operate, including storage, networking, the synchronization engine, the terminal UI, and the web server.
§Arguments
identity- The user’s identity.db- The database instance.encryption- The encryption key for the storage, if enabled.port- The port to listen on for P2P connections.web_port- The port for the Web UI.
§Errors
This function will return an error if any of the components fail to initialize or run.