pub struct VmnetHostBackend { /* private fields */ }Expand description
Vmnet-backed host implementation. Pulls frames from vmnet on recv()
and pushes them through vmnet_write on send().
Implementations§
Source§impl VmnetHostBackend
impl VmnetHostBackend
Sourcepub fn new(iface: VmnetIface) -> Self
pub fn new(iface: VmnetIface) -> Self
Wrap a started VmnetIface.
Sourcepub fn iface(&self) -> &VmnetIface
pub fn iface(&self) -> &VmnetIface
Borrow the underlying interface (used by snapshot save to read MTU / stats; never to mutate vmnet directly).
Trait Implementations§
Source§impl Debug for VmnetHostBackend
impl Debug for VmnetHostBackend
Auto Trait Implementations§
impl !Freeze for VmnetHostBackend
impl !RefUnwindSafe for VmnetHostBackend
impl Send for VmnetHostBackend
impl Sync for VmnetHostBackend
impl Unpin for VmnetHostBackend
impl UnsafeUnpin for VmnetHostBackend
impl UnwindSafe for VmnetHostBackend
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