pub trait Transport: Send + Sync {
// Required method
fn send(
&self,
wire: WireRequest,
) -> Result<TransportResponse, CanonicalError>;
}Expand description
The single network seam (arch §4.1). Object-safe; Send + Sync so an impl is
shareable. Exactly one round-trip per process — a caller wanting N concurrent
requests spawns N bz.
Required Methods§
fn send(&self, wire: WireRequest) -> Result<TransportResponse, CanonicalError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".