pub trait Transport<U>: 'static + Send + Sync {
type Destination: Send + Sync + Eq + Hash;
type Sender: TransportSender<U>;
fn destination<'life0, 'life1, 'async_trait>(
&'life0 self,
meta: &'life1 MailMetadata<U>
) -> Pin<Box<dyn Future<Output = Result<Self::Destination, TransportFailure>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn connect<'life0, 'life1, 'async_trait>(
&'life0 self,
dest: &'life1 Self::Destination
) -> Pin<Box<dyn Future<Output = Result<Self::Sender, TransportFailure>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}