pub struct VsockDevice {
pub guest_cid: u32,
pub uds_path: String,
}Expand description
PUT /vsock
Configures the virtio-vsock device. The guest communicates with the host
using AF_VSOCK sockets; Firecracker maps guest-initiated connections to
Unix domain sockets on the host at <uds_path>_<port>.
Fields§
§guest_cid: u32CID assigned to the guest (must be ≥ 3; 2 = VMADDR_CID_HOST is reserved).
uds_path: StringBase path of the host-side Unix domain socket.
Guest-initiated connections to port P arrive on <uds_path>_P.
Trait Implementations§
Source§impl Debug for VsockDevice
impl Debug for VsockDevice
Auto Trait Implementations§
impl Freeze for VsockDevice
impl RefUnwindSafe for VsockDevice
impl Send for VsockDevice
impl Sync for VsockDevice
impl Unpin for VsockDevice
impl UnsafeUnpin for VsockDevice
impl UnwindSafe for VsockDevice
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