pub(crate) fn main() -> Result<()>Expand description
The main function of the application.
This function is the entry point for the p2p-chat application. It initializes the application and launches it in either client or mailbox mode based on command-line arguments.
ยงErrors
Returns an error if the application fails to launch or encounters a critical error during execution.