pub struct NicBuilder { /* private fields */ }
Implementations§
Source§impl NicBuilder
impl NicBuilder
pub fn max_queues(self, max_queues: u16) -> Self
Sourcepub fn build(
self,
driver_source: &VmTaskDriverSource,
memory: GuestMemory,
endpoint: Box<dyn Endpoint>,
mac_address: MacAddress,
) -> Device
pub fn build( self, driver_source: &VmTaskDriverSource, memory: GuestMemory, endpoint: Box<dyn Endpoint>, mac_address: MacAddress, ) -> Device
Creates a new NIC.
Auto Trait Implementations§
impl Freeze for NicBuilder
impl RefUnwindSafe for NicBuilder
impl Send for NicBuilder
impl Sync for NicBuilder
impl Unpin for NicBuilder
impl UnwindSafe for NicBuilder
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