pub struct GenericVhostUserConfig {
pub socket: String,
pub queue_size: Option<Vec<u16>>,
pub pci_segment: Option<i32>,
pub pci_device_id: Option<i32>,
pub virtio_id: u32,
}Fields§
§socket: String§queue_size: Option<Vec<u16>>§pci_segment: Option<i32>§pci_device_id: Option<i32>§virtio_id: u32Implementations§
Source§impl GenericVhostUserConfig
impl GenericVhostUserConfig
pub fn new(socket: String, virtio_id: u32) -> GenericVhostUserConfig
Trait Implementations§
Source§impl Clone for GenericVhostUserConfig
impl Clone for GenericVhostUserConfig
Source§fn clone(&self) -> GenericVhostUserConfig
fn clone(&self) -> GenericVhostUserConfig
Returns a duplicate 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 moreSource§impl Debug for GenericVhostUserConfig
impl Debug for GenericVhostUserConfig
Source§impl Default for GenericVhostUserConfig
impl Default for GenericVhostUserConfig
Source§fn default() -> GenericVhostUserConfig
fn default() -> GenericVhostUserConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenericVhostUserConfig
impl<'de> Deserialize<'de> for GenericVhostUserConfig
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 PartialEq for GenericVhostUserConfig
impl PartialEq for GenericVhostUserConfig
Source§impl Serialize for GenericVhostUserConfig
impl Serialize for GenericVhostUserConfig
impl StructuralPartialEq for GenericVhostUserConfig
Auto Trait Implementations§
impl Freeze for GenericVhostUserConfig
impl RefUnwindSafe for GenericVhostUserConfig
impl Send for GenericVhostUserConfig
impl Sync for GenericVhostUserConfig
impl Unpin for GenericVhostUserConfig
impl UnsafeUnpin for GenericVhostUserConfig
impl UnwindSafe for GenericVhostUserConfig
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