Trait netcfg::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,

Object Safety§

This trait is not object safe.

Implementors§