pub async fn search(term: &str, tx: oneshot::Sender<Response>) -> Result<()> {
    let query = Query::new(term, BOT_NAME).skip_disambig();
    let res = query.execute()?;
    tx.send(res).unwrap();
    Ok(())
}
// Normal search, using DuckDuckGo instant search API
Normal search, using DuckDuckGo instant search API
Normal search using DuckDuckGo instant search API
pub async fn search(term: &str, tx: oneshot::Sender<Response>) -> Result<()> {
    let query = Query::new(term, BOT_NAME).skip_disambig();
    let res = query.execute()?;
    tx.send(res).unwrap();
    Ok(())
}
pub async fn search ( term : & str , tx : oneshot :: Sender < Response > ) -> Result < ( ) > { let query = Query :: new ( term , BOT_NAME ) . skip_disambig ( ) ; let res = query . execute ( ) ? ; tx . send ( res ) . unwrap ( ) ; Ok ( ( ) ) }
Normal search, using DuckDuckGo instant search API
Normal search using DuckDuckGo instant search API
term
&str
tx
oneshot::Sender<Response>