pub enum NetworkAttachment {
SocketPairFd(VmSocketEndpoint),
Tap {
name: String,
mac: Option<String>,
},
}Expand description
Network attachment for a VM.
Variants§
SocketPairFd(VmSocketEndpoint)
Owned socket endpoint for an L2 switch port (macOS). The endpoint is the VM’s end of a socketpair — the switch holds the other end.
Tap
TAP device name (Linux).
Trait Implementations§
Source§impl Clone for NetworkAttachment
impl Clone for NetworkAttachment
Source§fn clone(&self) -> NetworkAttachment
fn clone(&self) -> NetworkAttachment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkAttachment
impl RefUnwindSafe for NetworkAttachment
impl Send for NetworkAttachment
impl Sync for NetworkAttachment
impl Unpin for NetworkAttachment
impl UnsafeUnpin for NetworkAttachment
impl UnwindSafe for NetworkAttachment
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