Trait CargoClient

Source
pub trait CargoClient: Send + Sync {
    // Required method
    fn get_crate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: GetCrateRequestView<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<ExtendedCrate, GetCrateError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_crate<'life0, 'life1, 'async_trait>( &'life0 self, req: GetCrateRequestView<'life1>, ) -> Pin<Box<dyn Future<Output = Result<ExtendedCrate, GetCrateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + CargoClient + ?Sized> CargoClient for &'a T
where &'a T: Send + Sync,

Source§

fn get_crate<'life0, 'life1, 'async_trait>( &'life0 self, req: GetCrateRequestView<'life1>, ) -> Pin<Box<dyn Future<Output = Result<ExtendedCrate, GetCrateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl<T: CargoClient + ?Sized> CargoClient for Arc<T>
where Arc<T>: Send + Sync,

Source§

fn get_crate<'life0, 'life1, 'async_trait>( &'life0 self, req: GetCrateRequestView<'life1>, ) -> Pin<Box<dyn Future<Output = Result<ExtendedCrate, GetCrateError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§