#[non_exhaustive]pub struct VsockConfig {
pub vsock_id: Option<VsockId>,
pub guest_cid: u32,
pub uds_path: UdsPath,
pub tsi: bool,
}Expand description
Validated /vsock PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vsock_id: Option<VsockId>Optional validated vsock ID.
guest_cid: u32Validated guest CID.
uds_path: UdsPathValidated UDS path.
tsi: boolTSI extension flag.
Trait Implementations§
Source§impl Clone for VsockConfig
impl Clone for VsockConfig
Source§fn clone(&self) -> VsockConfig
fn clone(&self) -> VsockConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VsockConfig
impl Debug for VsockConfig
Source§impl Serialize for VsockConfig
impl Serialize for VsockConfig
Source§impl TryFrom<RawVsockConfig> for VsockConfig
impl TryFrom<RawVsockConfig> for VsockConfig
Auto Trait Implementations§
impl Freeze for VsockConfig
impl RefUnwindSafe for VsockConfig
impl Send for VsockConfig
impl Sync for VsockConfig
impl Unpin for VsockConfig
impl UnsafeUnpin for VsockConfig
impl UnwindSafe for VsockConfig
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