pub struct NetBuilder { /* private fields */ }
Expand description
Builder for Net
.
Implementations§
Source§impl NetBuilder
impl NetBuilder
pub fn tap<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn ip<VALUE: Into<IpAddr>>(&mut self, value: VALUE) -> &mut Self
pub fn mask<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn mac<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn fd<VALUE: Into<Vec<usize>>>(&mut self, value: VALUE) -> &mut Self
pub fn iommu<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
pub fn num_queues<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn queue_size<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn vhost_user<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
pub fn socket<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn vhost_mode<VALUE: Into<VhostMode>>(&mut self, value: VALUE) -> &mut Self
pub fn bw_size<VALUE: Into<ByteSize>>(&mut self, value: VALUE) -> &mut Self
pub fn bw_one_time_burst<VALUE: Into<ByteSize>>( &mut self, value: VALUE, ) -> &mut Self
pub fn bw_refill_time<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn ops_size<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn ops_one_time_burst<VALUE: Into<usize>>( &mut self, value: VALUE, ) -> &mut Self
pub fn ops_refill_time<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn pci_segment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn offload_tso<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
pub fn offload_ufo<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
pub fn offload_csum<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
Trait Implementations§
Source§impl Clone for NetBuilder
impl Clone for NetBuilder
Source§fn clone(&self) -> NetBuilder
fn clone(&self) -> NetBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NetBuilder
impl RefUnwindSafe for NetBuilder
impl Send for NetBuilder
impl Sync for NetBuilder
impl Unpin for NetBuilder
impl UnwindSafe for NetBuilder
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