pub struct Vsock {
pub guest_cid: u32,
pub uds_path: String,
pub vsock_id: Option<String>,
}
Expand description
Configures a vsock device, which provides a communication channel between the host and guest. This is particularly useful for services that need to communicate across the VM boundary without using traditional networking.
Fields§
§guest_cid: u32
CID for the guest vsock
uds_path: String
Path to the vsock device
vsock_id: Option<String>
Vsock identifier
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vsock
impl<'de> Deserialize<'de> for Vsock
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<'v_a> ValidateArgs<'v_a> for Vsock
impl<'v_a> ValidateArgs<'v_a> for Vsock
Auto Trait Implementations§
impl Freeze for Vsock
impl RefUnwindSafe for Vsock
impl Send for Vsock
impl Sync for Vsock
impl Unpin for Vsock
impl UnwindSafe for Vsock
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