#[non_exhaustive]pub enum NetKind {
Flatten,
Forward,
Nat,
}Expand description
Kind of network.
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.
Flatten
Like VxLan or Flannel(used in k8s).
Forward
Need firewall to do ports-forwarding.
Nat
An alias of Forward.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetKind
impl RefUnwindSafe for NetKind
impl Send for NetKind
impl Sync for NetKind
impl Unpin for NetKind
impl UnwindSafe for NetKind
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