pub trait Backend {
type Opts: Args;
// Required method
fn create_transport(
common: &BackendOpts,
opts: &Self::Opts,
) -> Result<Box<dyn Transport>>;
}
Required Associated Types§
Required Methods§
Sourcefn create_transport(
common: &BackendOpts,
opts: &Self::Opts,
) -> Result<Box<dyn Transport>>
fn create_transport( common: &BackendOpts, opts: &Self::Opts, ) -> Result<Box<dyn Transport>>
Create a transport with the provided arguments.
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.