#[non_exhaustive]pub enum VmnetMode {
Shared,
Host,
}Expand description
Vmnet operating mode. Mirrors VMNET_SHARED_MODE / VMNET_HOST_MODE /
VMNET_BRIDGED_MODE — the u64 discriminants come straight from <vmnet/vmnet.h>.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
VMNET_SHARED_MODE — guests get an IP behind a host-side NAT.
Host
VMNET_HOST_MODE — host-only network (no NAT egress).
Implementations§
Trait Implementations§
impl Copy for VmnetMode
impl Eq for VmnetMode
impl StructuralPartialEq for VmnetMode
Auto Trait Implementations§
impl Freeze for VmnetMode
impl RefUnwindSafe for VmnetMode
impl Send for VmnetMode
impl Sync for VmnetMode
impl Unpin for VmnetMode
impl UnsafeUnpin for VmnetMode
impl UnwindSafe for VmnetMode
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