pub struct Handle { /* private fields */ }
Expand description
A handle for making AUR requests.
Implementations§
source§impl Handle
impl Handle
sourcepub fn new_with_client(client: Client) -> Self
pub fn new_with_client(client: Client) -> Self
Create a new handle with a given reqwest client.
sourcepub fn new_with_url<S: Into<String>>(url: S) -> Self
pub fn new_with_url<S: Into<String>>(url: S) -> Self
Create a new handle with a given url.
sourcepub fn new_with_settings<S: Into<String>>(client: Client, url: S) -> Self
pub fn new_with_settings<S: Into<String>>(client: Client, url: S) -> Self
Create a new handle with a given reqwest client and url.
Trait Implementations§
source§impl Raur for Handle
impl Raur for Handle
source§fn raw_info<'life0, 'life1, 'async_trait, S>(
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn raw_info<'life0, 'life1, 'async_trait, S>(
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Performs an AUR info request. Read more
source§fn search_by<'life0, 'async_trait, S>(
&'life0 self,
query: S,
strategy: SearchBy
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
Self: 'async_trait,
fn search_by<'life0, 'async_trait, S>(
&'life0 self,
query: S,
strategy: SearchBy
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
Self: 'async_trait,
Performs an AUR search request. Read more
source§fn info<'life0, 'life1, 'async_trait, S>(
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Self::Err>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
fn info<'life0, 'life1, 'async_trait, S>(
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Self::Err>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
Performs an AUR info request, splitting requests as needed. Read more
source§fn cache_info<'life0, 'life1, 'life2, 'async_trait, S>(
&'life0 self,
cache: &'life1 mut Cache,
pkgs: &'life2 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<ArcPackage>, Self::Err>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
fn cache_info<'life0, 'life1, 'life2, 'async_trait, S>(
&'life0 self,
cache: &'life1 mut Cache,
pkgs: &'life2 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<ArcPackage>, Self::Err>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
Perform an info request, storing the results into cache. Requests are not made
for packages already in cache. If all packages are already in cache then no network request
will be made. Read more
source§fn search<'life0, 'async_trait, S>(
&'life0 self,
query: S
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Self::Err>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn search<'life0, 'async_trait, S>(
&'life0 self,
query: S
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Self::Err>> + Send + 'async_trait>>where
S: 'async_trait + AsRef<str> + Send + Sync,
'life0: 'async_trait,
Self: Sync + 'async_trait,
Performs an AUR search request by NameDesc. Read more