Trait webrtc_util::vnet::router::Nic [−][src]
pub trait Nic { #[must_use] fn get_interface<'life0, 'life1, 'async_trait>(
&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait; #[must_use] fn add_addrs_to_interface<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait; #[must_use] fn on_inbound_chunk<'life0, 'async_trait>(
&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn get_static_ips<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn set_router<'life0, 'async_trait>(
&'life0 self,
r: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Required methods
#[must_use]fn get_interface<'life0, 'life1, 'async_trait>(
&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_interface<'life0, 'life1, 'async_trait>(&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn add_addrs_to_interface<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn add_addrs_to_interface<'life0, 'life1, 'life2, 'async_trait>(&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
#[must_use]fn on_inbound_chunk<'life0, 'async_trait>(
&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn on_inbound_chunk<'life0, 'async_trait>(&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_static_ips<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get_static_ips<'life0, 'async_trait>(&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn set_router<'life0, 'async_trait>(
&'life0 self,
r: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn set_router<'life0, 'async_trait>(&'life0 self,
r: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Implementors
impl Nic for VNet
[src]
impl Nic for VNet
[src]fn get_interface<'life0, 'life1, 'async_trait>(
&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn add_addrs_to_interface<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn set_router<'life0, 'async_trait>(
&'life0 self,
r: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
r: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn on_inbound_chunk<'life0, 'async_trait>(
&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_static_ips<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Nic for Router
[src]
impl Nic for Router
[src]fn get_interface<'life0, 'life1, 'async_trait>(
&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
ifc_name: &'life1 str
) -> Pin<Box<dyn Future<Output = Option<Interface>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn add_addrs_to_interface<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
ifc_name: &'life1 str,
addrs: &'life2 [IpNet]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn on_inbound_chunk<'life0, 'async_trait>(
&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
c: Box<dyn Chunk + Send + Sync>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn get_static_ips<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<IpAddr>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn set_router<'life0, 'async_trait>(
&'life0 self,
parent: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
parent: Arc<Mutex<Router>>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,