Enum docker_compose::v2::NetworkMode
[−]
[src]
pub enum NetworkMode { Bridge, Host, None, Service(String), Container(String), }
How should we configure the container's networking?
Variants
Bridge
Use the standard Docker networking bridge.
Host
Use the host's network interface directly.
None
Disable networking in the container.
Service(String)
Use the networking namespace associated with the named service.
Container(String)
Use the networking namespace associated with the named container.
Trait Implementations
impl Debug for NetworkMode
[src]
impl Clone for NetworkMode
[src]
fn clone(&self) -> NetworkMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for NetworkMode
[src]
fn eq(&self, __arg_0: &NetworkMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NetworkMode) -> bool
This method tests for !=
.