[−][src]Trait sauce_api::Sauce
A generic trait that can be used to standardize the sauce system across different sources.
Required methods
#[must_use]pub fn build_url<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Builds the URL for the given location, allowing one to provide it in case an error happens
#[must_use]pub fn check_sauce<'life0, 'async_trait>(
&'life0 self,
url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Runs the sauce engine against a given URL, providing either results or a 'String' as an error.
Provided methods
#[must_use]pub fn check_sauces<'life0, 'async_trait>(
&'life0 self,
urls: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<Vec<SauceResult>, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
[src]
&'life0 self,
urls: Vec<String>
) -> Pin<Box<dyn Future<Output = Result<Vec<SauceResult>, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Just runs check_sauce several times, combining it all into one Vec
Implementors
impl Sauce for IQDB
[src]
pub fn build_url<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn check_sauce<'life0, 'async_trait>(
&'life0 self,
original_url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
original_url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Sauce for SauceNao
[src]
pub fn build_url<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn check_sauce<'life0, 'async_trait>(
&'life0 self,
original_url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
original_url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Sauce for Yandex
[src]
pub fn build_url<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
url: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
pub fn check_sauce<'life0, 'async_trait>(
&'life0 self,
url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
url: String
) -> Pin<Box<dyn Future<Output = Result<SauceResult, String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,