Function bones_framework::networking::lan::prepare_to_host
source · pub async fn prepare_to_host<'a>(
host_info: &'a mut Option<ServerInfo>,
service_name: &str,
) -> (bool, &'a mut ServerInfo)
Expand description
Get the current host info or create a new one. When there’s an existing
service but its service_name
is different, the service is recreated and
only then the returned bool
is true
.