Skip to navigation
Check if rust result returns an error or an ok
09.02.23
let _stream = client.query(sql, &[&"B%"]).await; match stream { Ok(v) => println!("...ok"), Err(e) => println!("...failed"), } if let Ok(data) = _stream { println!("...ok"); }
https://doc.rust-lang.org/std/result/
Reply
Anonymous
Information Epoch 1732452760
Silence is golden.
Home
Notebook
Contact us