pub async fn run(
identity: Arc<Identity>,
db: Db,
encryption: Option<StorageEncryption>,
port: u16,
) -> Result<()>Expand description
Runs a mailbox node.
This function initializes and runs a mailbox node, which is responsible for storing and forwarding messages for other peers in the network.
§Arguments
identity- The identity of the node.db- The database instance for storing mailbox data.encryption- The encryption key for the storage.port- The port to listen on for incoming connections.
§Errors
This function will return an error if the mailbox node fails to start.