pub struct Net {
Show 22 fields pub tap: Option<String>, pub ip: Option<IpAddr>, pub mask: Option<u8>, pub mac: Option<String>, pub fd: Option<Vec<usize>>, pub iommu: Option<OnOff>, pub num_queues: Option<usize>, pub queue_size: Option<usize>, pub id: Option<String>, pub vhost_user: Option<OnOff>, pub socket: Option<PathBuf>, pub vhost_mode: Option<VhostMode>, pub bw_size: Option<ByteSize>, pub bw_one_time_burst: Option<ByteSize>, pub bw_refill_time: Option<usize>, pub ops_size: Option<usize>, pub ops_one_time_burst: Option<usize>, pub ops_refill_time: Option<usize>, pub pci_segment: Option<String>, pub offload_tso: Option<OnOff>, pub offload_ufo: Option<OnOff>, pub offload_csum: Option<OnOff>,
}

Fields§

§tap: Option<String>§ip: Option<IpAddr>§mask: Option<u8>§mac: Option<String>§fd: Option<Vec<usize>>§iommu: Option<OnOff>§num_queues: Option<usize>§queue_size: Option<usize>§id: Option<String>§vhost_user: Option<OnOff>§socket: Option<PathBuf>§vhost_mode: Option<VhostMode>§bw_size: Option<ByteSize>§bw_one_time_burst: Option<ByteSize>§bw_refill_time: Option<usize>§ops_size: Option<usize>§ops_one_time_burst: Option<usize>§ops_refill_time: Option<usize>§pci_segment: Option<String>§offload_tso: Option<OnOff>§offload_ufo: Option<OnOff>§offload_csum: Option<OnOff>

Auto Trait Implementations§

§

impl RefUnwindSafe for Net

§

impl Send for Net

§

impl Sync for Net

§

impl Unpin for Net

§

impl UnwindSafe for Net

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.