pub struct VsockSpec {
pub cid: u32,
pub uds_path: PathBuf,
}Expand description
Vsock device config.
Firecracker’s vsock implementation uses a unix socket on the host (uds_path) and
a 32-bit Context ID (cid) that the guest reads to identify the channel.
Fields§
§cid: u32Guest context ID. Must not collide with other VMs on the same host.
Use [crate::vsock::VsockManager] to allocate.
uds_path: PathBufHost-side unix domain socket path. The parent directory MUST exist
before snapshot/load — see [crate::vsock::VsockManager::ensure_uds_parent].
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VsockSpec
impl RefUnwindSafe for VsockSpec
impl Send for VsockSpec
impl Sync for VsockSpec
impl Unpin for VsockSpec
impl UnsafeUnpin for VsockSpec
impl UnwindSafe for VsockSpec
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