pub enum NetworkModeArg {
None,
Host,
Bridge,
}Expand description
CLI-level network mode selection.
Parsed by clap at argument time. The bridge variant carries additional
configuration that is attached after parsing.
Variants§
None
No network (default).
Host
Share host network namespace (dangerous).
Bridge
Virtual bridge with veth pair.
Trait Implementations§
Source§impl Clone for NetworkModeArg
impl Clone for NetworkModeArg
Source§fn clone(&self) -> NetworkModeArg
fn clone(&self) -> NetworkModeArg
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 NetworkModeArg
impl Debug for NetworkModeArg
Source§impl PartialEq for NetworkModeArg
impl PartialEq for NetworkModeArg
Source§impl ValueEnum for NetworkModeArg
impl ValueEnum for NetworkModeArg
impl Copy for NetworkModeArg
impl Eq for NetworkModeArg
impl StructuralPartialEq for NetworkModeArg
Auto Trait Implementations§
impl Freeze for NetworkModeArg
impl RefUnwindSafe for NetworkModeArg
impl Send for NetworkModeArg
impl Sync for NetworkModeArg
impl Unpin for NetworkModeArg
impl UnsafeUnpin for NetworkModeArg
impl UnwindSafe for NetworkModeArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.