reqwest_cross

Trait ResponseHandler

Source
pub trait ResponseHandler<Fut, O>:
    Send
    + 'static
    + FnOnce(Result<Response>) -> Fut
where Fut: BoundedFuture<O>,
{ }
Expand description

An async func that accepts a reqwest::Response and returns a generic value

Implementors§

Source§

impl<T, Fut, O> ResponseHandler<Fut, O> for T
where T: Send + 'static + FnOnce(Result<Response>) -> Fut, Fut: BoundedFuture<O>,