Struct raur::Handle [−][src]
pub struct Handle { /* fields omitted */ }
A handle for making AUR requests.
Implementations
impl Handle
[src]
impl Handle
[src]pub fn new() -> Self
[src]
Create a new handle with default settings.
pub fn new_with_client(client: Client) -> Self
[src]
Create a new handle with a given reqwest client.
pub fn new_with_url<S: Into<String>>(url: S) -> Self
[src]
Create a new handle with a given url.
pub fn new_with_settings<S: Into<String>>(client: Client, url: S) -> Self
[src]
Create a new handle with a given reqwest client and url.
pub fn url(&self) -> &str
[src]
Internal URL of this Handle. This just points to AUR_URL if you did not explicitly set it.
pub fn client(&self) -> &Client
[src]
Getter for this handle’s reqwest client.
Trait Implementations
impl Raur for Handle
[src]
impl Raur for Handle
[src]fn raw_info<'life0, 'life1, 'async_trait, S: AsRef<str> + Send + Sync>(
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn search_by<'life0, 'async_trait, S: AsRef<str> + Send + Sync>(
&'life0 self,
query: S,
strategy: SearchBy
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
query: S,
strategy: SearchBy
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn info<'life0, 'life1, 'async_trait, S: AsRef<str> + Send + Sync>(
&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
[src]
#[must_use]
fn info<'life0, 'life1, 'async_trait, S: AsRef<str> + Send + Sync>(&'life0 self,
pkg_names: &'life1 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: Sync + 'async_trait,
#[must_use]fn cache_info<'life0, 'life1, 'life2, 'async_trait, S: AsRef<str> + Send + Sync>(
&'life0 self,
cache: &'life1 mut Cache,
pkgs: &'life2 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<ArcPackage>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
[src]
#[must_use]
fn cache_info<'life0, 'life1, 'life2, 'async_trait, S: AsRef<str> + Send + Sync>(&'life0 self,
cache: &'life1 mut Cache,
pkgs: &'life2 [S]
) -> Pin<Box<dyn Future<Output = Result<Vec<ArcPackage>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: Sync + 'async_trait,
#[must_use]fn search<'life0, 'async_trait, S: AsRef<str> + Send + Sync>(
&'life0 self,
query: S
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
#[must_use]
fn search<'life0, 'async_trait, S: AsRef<str> + Send + Sync>(&'life0 self,
query: S
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
S: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
#[must_use]fn orphans<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
#[must_use]
fn orphans<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Package>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for Handle
impl !RefUnwindSafe for Handle
impl !UnwindSafe for Handle
impl !UnwindSafe for Handle
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]