hyper_client_pool/
deliverable.rs

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