NetworkManager

Trait NetworkManager 

Source
pub trait NetworkManager<'a, I, N>
where Self: Clone, I: NetworkInterface, N: Network<'a>,
{ // Required methods fn create_network<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<N>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_network<'life0, 'async_trait>( &'life0 self, network: N, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn exists_network<'life0, 'async_trait>( &'life0 self, network: N, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_interface<'life0, 'async_trait>( &'life0 self, network: N, id: u32, ) -> Pin<Box<dyn Future<Output = Result<I>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_interface<'life0, 'async_trait>( &'life0 self, interface: I, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn exists_interface<'life0, 'async_trait>( &'life0 self, interface: I, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn bind<'life0, 'async_trait>( &'life0 self, network: N, interface: I, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unbind<'life0, 'async_trait>( &'life0 self, interface: I, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn add_address<'life0, 'life1, 'async_trait>( &'life0 self, interface: I, address: &'life1 Address, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; }

Required Methods§

Source

fn create_network<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<N>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_network<'life0, 'async_trait>( &'life0 self, network: N, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn exists_network<'life0, 'async_trait>( &'life0 self, network: N, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn create_interface<'life0, 'async_trait>( &'life0 self, network: N, id: u32, ) -> Pin<Box<dyn Future<Output = Result<I>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_interface<'life0, 'async_trait>( &'life0 self, interface: I, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn exists_interface<'life0, 'async_trait>( &'life0 self, interface: I, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn bind<'life0, 'async_trait>( &'life0 self, network: N, interface: I, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn unbind<'life0, 'async_trait>( &'life0 self, interface: I, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn add_address<'life0, 'life1, 'async_trait>( &'life0 self, interface: I, address: &'life1 Address, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: '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§