Skip to main content

Transport

Trait Transport 

Source
pub trait Transport: TransportSender + TransportReceiver { }
Available on crate feature transport only.
Expand description

Combined transport – implements both send and receive.

Most concrete impls (Kafka, gRPC, Memory, Redis, File, Pipe) qualify; auto-implemented via blanket impl.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: TransportSender + TransportReceiver> Transport for T

Blanket impl: anything that implements both traits is a Transport.