Skip to main content

Transport

Trait Transport 

Source
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§

Source

type Error

Error type for this transport

Source

type Session: Session

Session type for this transport

Required Methods§

Source

fn open(config: &TransportConfig<'_>) -> Result<Self::Session, Self::Error>

Open a new session with the given configuration

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.

Implementors§