[][src]Function muoxi_staging::get

pub async fn get<'a>(client: &'a mut Client) -> Option<String>

Friendly async wrapper around recieving message from client Instead of panicing on wrong error, it will return an Option

let response = get(&mut client).await;

if let Some(resp) = response{
    println!("Recieved from client: {}", resp)
}else{
println!("Recieved a None, most likely client has prematurely disconnected");
}