Struct docker_command::PublishPorts [−][src]
pub struct PublishPorts {
pub container: PortRange,
pub host: Option<PortRange>,
pub ip: Option<String>,
}
Expand description
Options for publishing ports from a container to the host.
Fields
container: PortRange
Port or port range in the container to publish.
host: Option<PortRange>
Port or port range on the host.
ip: Option<String>
Host IP. If set to 0.0.0.0
or None
, the port will be bound
to all IPs on the host.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
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 PublishPorts
impl Send for PublishPorts
impl Sync for PublishPorts
impl Unpin for PublishPorts
impl UnwindSafe for PublishPorts
Blanket Implementations
Mutably borrows from an owned value. Read more