Trait TorrentApi
Source pub trait TorrentApi {
// Required method
fn hash(&self) -> String;
// Provided methods
fn properties<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api,
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn trackers<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api,
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn contents<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api,
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}