pub enum BridgeDriver {
Kernel(BridgeNetwork),
Userspace(UserspaceNetwork),
}Expand description
Native bridge-mode driver for the native runtime.
Variants§
Kernel(BridgeNetwork)
Userspace(UserspaceNetwork)
Implementations§
Source§impl BridgeDriver
impl BridgeDriver
pub fn setup_with_id( pid: u32, config: &BridgeConfig, container_id: &str, host_is_root: bool, rootless: bool, ) -> Result<Self>
pub fn apply_egress_policy( &self, pid: u32, policy: &EgressPolicy, rootless: bool, ) -> Result<()>
pub fn cleanup(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for BridgeDriver
impl RefUnwindSafe for BridgeDriver
impl Send for BridgeDriver
impl Sync for BridgeDriver
impl Unpin for BridgeDriver
impl UnsafeUnpin for BridgeDriver
impl UnwindSafe for BridgeDriver
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