pub struct VirtioNetworkRuntime { /* private fields */ }Expand description
Running host-side virtio-net runtime for one guest NIC.
Ownership model:
- one runtime instance corresponds to one guest virtio NIC
- it owns the queue set shared by the worker threads
- it owns the libkrun Unix-stream bridge threads
- it owns the published-port listener threads
- it owns the smoltcp poll thread
Dropping the runtime is the shutdown signal. Drop marks the shared queues
as shutting down, wakes blocked workers, and joins the poll thread.
Trait Implementations§
Source§impl Drop for VirtioNetworkRuntime
impl Drop for VirtioNetworkRuntime
Auto Trait Implementations§
impl !RefUnwindSafe for VirtioNetworkRuntime
impl !UnwindSafe for VirtioNetworkRuntime
impl Freeze for VirtioNetworkRuntime
impl Send for VirtioNetworkRuntime
impl Sync for VirtioNetworkRuntime
impl Unpin for VirtioNetworkRuntime
impl UnsafeUnpin for VirtioNetworkRuntime
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