Trait Backend

Source
pub trait Backend {
    type Opts: Args;

    // Required method
    fn create_transport(
        common: &BackendOpts,
        opts: &Self::Opts,
    ) -> Result<Box<dyn Transport>>;
}

Required Associated Types§

Source

type Opts: Args

Additional backend-specific arguments in addition to BackendOpts.

Required Methods§

Source

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.

Implementors§