pub enum VsockCid {
Any,
Hypervisor,
Local,
Host,
Cid(c_uint),
}
Expand description
The vsock equivalent of an IP address.
Variants§
Any
Vsock equivalent of INADDR_ANY. Indicates the context id of the current endpoint.
Hypervisor
An address that refers to the bare-metal machine that serves as the hypervisor.
Local
The loopback address.
Host
The parent machine. It may not be the hypervisor for nested VMs.
Cid(c_uint)
An assigned CID that serves as the address for VSOCK.
Trait Implementations§
source§impl Ord for VsockCid
impl Ord for VsockCid
source§impl PartialEq for VsockCid
impl PartialEq for VsockCid
source§impl PartialOrd for VsockCid
impl PartialOrd for VsockCid
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for VsockCid
impl Eq for VsockCid
impl StructuralPartialEq for VsockCid
Auto Trait Implementations§
impl RefUnwindSafe for VsockCid
impl Send for VsockCid
impl Sync for VsockCid
impl Unpin for VsockCid
impl UnwindSafe for VsockCid
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