pub struct LinuxNetnsIsolator {
pub namespace_name: String,
}Fields§
§namespace_name: StringTrait Implementations§
Source§impl NetworkIsolator for LinuxNetnsIsolator
impl NetworkIsolator for LinuxNetnsIsolator
fn setup<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn teardown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn spawn_proxy<'life0, 'life1, 'async_trait>(
&'life0 self,
target_ip: &'life1 str,
target_port: u16,
) -> Pin<Box<dyn Future<Output = Result<(ProxyListener, JoinHandle<()>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for LinuxNetnsIsolator
impl RefUnwindSafe for LinuxNetnsIsolator
impl Send for LinuxNetnsIsolator
impl Sync for LinuxNetnsIsolator
impl Unpin for LinuxNetnsIsolator
impl UnsafeUnpin for LinuxNetnsIsolator
impl UnwindSafe for LinuxNetnsIsolator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more