Trait torn_api::send::ApiClient

source ·
pub trait ApiClient: Send + Sync {
    type Error: Error + Sync + Send;

    fn request<'life0, 'async_trait>(
        &'life0 self,
        url: String
    ) -> Pin<Box<dyn Future<Output = Result<Value, Self::Error>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn torn_api<S>(&self, key: S) -> ApiProvider<'_, Self, DirectExecutor<Self>>
    where
        Self: Sized,
        S: ToString
, { ... } }

Required Associated Types§

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Implementors§