pub enum FirecrackerNetworkType {
Simple,
Namespaced {
netns_name: String,
veth1_name: String,
veth2_name: String,
veth1_ip: IpInet,
veth2_ip: IpInet,
forwarded_guest_ip: Option<IpAddr>,
},
}Expand description
The type of Firecracker network to work with.
Variants§
Simple
Available on crate feature
simple only.A “simple” network configuration, with a tap device bound to the host interface via 1 set of forwarding rules. The most optimal and performant choice for the majority of use-cases.
Namespaced
Available on crate feature
namespaced only.A namespaced network configuration, with the tap device residing in a separate network namespace and being bound to the host interface via 2 sets of forwarding rules. The better choice exclusively for multiple running microVM sharing the same snapshot data (i.e. so-called “clones”).
Trait Implementations§
Source§impl Clone for FirecrackerNetworkType
impl Clone for FirecrackerNetworkType
Source§fn clone(&self) -> FirecrackerNetworkType
fn clone(&self) -> FirecrackerNetworkType
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 moreSource§impl Debug for FirecrackerNetworkType
impl Debug for FirecrackerNetworkType
Source§impl<'de> Deserialize<'de> for FirecrackerNetworkType
impl<'de> Deserialize<'de> for FirecrackerNetworkType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for FirecrackerNetworkType
impl Hash for FirecrackerNetworkType
Source§impl Ord for FirecrackerNetworkType
impl Ord for FirecrackerNetworkType
Source§fn cmp(&self, other: &FirecrackerNetworkType) -> Ordering
fn cmp(&self, other: &FirecrackerNetworkType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FirecrackerNetworkType
impl PartialEq for FirecrackerNetworkType
Source§impl PartialOrd for FirecrackerNetworkType
impl PartialOrd for FirecrackerNetworkType
Source§impl Serialize for FirecrackerNetworkType
impl Serialize for FirecrackerNetworkType
impl Eq for FirecrackerNetworkType
impl StructuralPartialEq for FirecrackerNetworkType
Auto Trait Implementations§
impl Freeze for FirecrackerNetworkType
impl RefUnwindSafe for FirecrackerNetworkType
impl Send for FirecrackerNetworkType
impl Sync for FirecrackerNetworkType
impl Unpin for FirecrackerNetworkType
impl UnwindSafe for FirecrackerNetworkType
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