netcfg

Trait Mode

Source
pub trait Mode {
    // Required method
    fn run<'a, 'async_trait>(
        netcfg: NetCfg<'a>,
        allowed_bridge_upstream_device_classes: HashSet<DeviceClass>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
       where 'a: 'async_trait;
}
Expand description

Allows callers of netcfg::run to configure at compile time which features should be enabled.

This trait may be expanded to support combinations of features that can be assembled together for specific netcfg builds.

Required Methods§

Source

fn run<'a, 'async_trait>( netcfg: NetCfg<'a>, allowed_bridge_upstream_device_classes: HashSet<DeviceClass>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
where 'a: 'async_trait,

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§