pub struct NetParameters {
pub mode: NetParametersMode,
pub vq_pairs: Option<u16>,
pub vhost_net: Option<VhostNetParameters>,
pub packed_queue: bool,
pub pci_address: Option<PciAddress>,
pub mrg_rxbuf: bool,
}Fields§
§mode: NetParametersMode§vq_pairs: Option<u16>§vhost_net: Option<VhostNetParameters>§packed_queue: bool§pci_address: Option<PciAddress>§mrg_rxbuf: boolImplementations§
Source§impl NetParameters
impl NetParameters
pub fn create_net_device( &self, protection_type: ProtectionType, ) -> Result<Box<dyn VirtioDevice>>
Trait Implementations§
Source§impl Debug for NetParameters
impl Debug for NetParameters
Source§impl<'de> Deserialize<'de> for NetParameters
impl<'de> Deserialize<'de> for NetParameters
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for NetParameters
impl FromStr for NetParameters
Source§impl PartialEq for NetParameters
impl PartialEq for NetParameters
Source§impl Serialize for NetParameters
impl Serialize for NetParameters
Source§impl VirtioDeviceModule for NetParameters
impl VirtioDeviceModule for NetParameters
Source§fn sort_name(&self) -> &'static str
fn sort_name(&self) -> &'static str
Name of the device used to determine init processing order.
Source§fn create(
&self,
args: &mut VirtioDeviceArgs<'_>,
) -> Result<Box<dyn VirtioDevice>>
fn create( &self, args: &mut VirtioDeviceArgs<'_>, ) -> Result<Box<dyn VirtioDevice>>
Create an instance of this device.
Source§fn create_jail(&self, jail_config: &JailConfig) -> Result<Option<Minijail>>
fn create_jail(&self, jail_config: &JailConfig) -> Result<Option<Minijail>>
Optionally create a jail for this device.
impl Eq for NetParameters
impl StructuralPartialEq for NetParameters
Auto Trait Implementations§
impl Freeze for NetParameters
impl RefUnwindSafe for NetParameters
impl Send for NetParameters
impl Sync for NetParameters
impl Unpin for NetParameters
impl UnwindSafe for NetParameters
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
§impl<T> FromArgValue for T
impl<T> FromArgValue for T
§fn from_arg_value(value: &str) -> Result<T, String>
fn from_arg_value(value: &str) -> Result<T, String>
Construct the type from a commandline value, returning an error string
on failure.