hyper-client-pool 0.6.0

Pooled Hyper Async Clients
Documentation
1
2
3
4
5
6
7
8
use crate::transaction::DeliveryResult;

/// The trait that handles the completion of the transaction ([`DeliveryResult`]).
/// `complete()` is guaranteed to be called once the Transaction is spawned, even
/// if the thread panics or the future is dropped.
pub trait Deliverable: Send + 'static {
    fn complete(self, result: DeliveryResult);
}