pub struct VhostUserParams<T: Debug> {
pub vhost: String,
pub device: T,
}Expand description
Extends any device configuration with a mandatory extra “vhost” parameter to specify the socket or PCI device to use in order to communicate with a vhost client.
The vhost argument must come first, followed by all the arguments required by device.
Fields§
§vhost: String§device: TTrait Implementations§
Source§impl<'de, T> Deserialize<'de> for VhostUserParams<T>where
T: Deserialize<'de> + Debug,
impl<'de, T> Deserialize<'de> for VhostUserParams<T>where
T: Deserialize<'de> + Debug,
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<T> FromArgValue for VhostUserParams<T>where
T: Debug + for<'de> Deserialize<'de>,
impl<T> FromArgValue for VhostUserParams<T>where
T: Debug + for<'de> Deserialize<'de>,
Auto Trait Implementations§
impl<T> Freeze for VhostUserParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for VhostUserParams<T>where
T: RefUnwindSafe,
impl<T> Send for VhostUserParams<T>where
T: Send,
impl<T> Sync for VhostUserParams<T>where
T: Sync,
impl<T> Unpin for VhostUserParams<T>where
T: Unpin,
impl<T> UnwindSafe for VhostUserParams<T>where
T: UnwindSafe,
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