Trait TorrentsApi

Source
pub trait TorrentsApi {
    // Required method
    fn hashes(&self) -> String;

    // Provided methods
    fn stop<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn start<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
        delete_data: bool,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn recheck<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn set_category<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
        category: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn add_tags<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
        tags: &'life2 [String],
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn remove_tags<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
        tags: &'life2 [String],
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn bottom_priority<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn top_priority<'life0, 'life1, 'async_trait>(
        &'life0 self,
        api: &'life1 Api,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn hashes(&self) -> String

Provided Methods§

Source

fn stop<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn start<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, delete_data: bool, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn recheck<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn set_category<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, api: &'life1 Api, category: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn add_tags<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, api: &'life1 Api, tags: &'life2 [String], ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn remove_tags<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, api: &'life1 Api, tags: &'life2 [String], ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn bottom_priority<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn top_priority<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl TorrentsApi for Vec<Hash>

Source§

fn hashes(&self) -> String

Source§

impl TorrentsApi for Vec<Torrent>

Source§

fn hashes(&self) -> String

Source§

impl TorrentsApi for [Hash]

Source§

fn hashes(&self) -> String

Source§

impl TorrentsApi for [Torrent]

Source§

fn hashes(&self) -> String

Implementors§