pub trait Transport {
type Error;
type Session: Session;
// Required method
fn open(config: &TransportConfig<'_>) -> Result<Self::Session, Self::Error>;
}Expand description
Transport backend trait (legacy).
Use Rmw for new code. This trait is retained for backward compatibility
with existing code that uses TransportConfig directly.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.