pub(super) trait Transport: Send + Sync {
// Required method
fn fetch_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
op: Op,
server: &'life1 ServerName,
opts: &'life2 Opts,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Injection seam between the fetcher and the network. The production impl
routes through federation::execute; tests substitute a scripted mock.
Required Methods§
fn fetch_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
op: Op,
server: &'life1 ServerName,
opts: &'life2 Opts,
) -> Pin<Box<dyn Future<Output = Result<Bytes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".