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

Use the standard Docker networking bridge.

Use the host's network interface directly.

Disable networking in the container.

Use the networking namespace associated with the named service.

Use the networking namespace associated with the named container.

Trait Implementations

impl Debug for NetworkMode
[src]

Formats the value using the given formatter.

impl Clone for NetworkMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NetworkMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NetworkMode
[src]

impl Display for NetworkMode
[src]

Formats the value using the given formatter.

impl FromStr for NetworkMode
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more