reqwest_cross

Trait DoneHandler

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

A function that receives the reqwest::Response and returns it to the application via some means (See examples for way it can be done)

Implementors§

Source§

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