Enum podman_api::opts::NetworkMode [−][src]
pub enum NetworkMode {
Bridge,
Host,
None,
Container,
Custom(String),
}
Expand description
The networking mode for the run commands during image build.
Variants
Bridge
Limited to containers within a single host, port mapping required for external access.
Host
No isolation between host and containers on this network.
None
Disable all networking for this container.
Container
Share networking with given container.
Custom(String)
Tuple Fields
0: String
Custom network’s name.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NetworkMode
impl Send for NetworkMode
impl Sync for NetworkMode
impl Unpin for NetworkMode
impl UnwindSafe for NetworkMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more