Struct docker_command::PortRange [−][src]
pub struct PortRange(pub RangeInclusive<u16>);
Expand description
Port or range of ports.
Examples
Specify a single port:
use docker_command::PortRange;
let port = PortRange::from(123);
assert_eq!(port, PortRange(123..=123));
Specify a port range:
use docker_command::PortRange;
PortRange(123..=567);
Tuple Fields
0: RangeInclusive<u16>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PortRange
impl UnwindSafe for PortRange
Blanket Implementations
Mutably borrows from an owned value. Read more