[][src]Trait telegram_bot::connector::Connector

pub trait Connector: Debug + Send + Sync {
    fn request(
        &self,
        token: &str,
        req: HttpRequest
    ) -> Pin<Box<dyn Future<Output = Result<HttpResponse, Error>> + Send>>; }

Required methods

fn request(
    &self,
    token: &str,
    req: HttpRequest
) -> Pin<Box<dyn Future<Output = Result<HttpResponse, Error>> + Send>>

Loading content...

Implementors

impl<C: Connect + Debug + 'static + Clone + Send + Sync> Connector for HyperConnector<C>[src]

Loading content...