Enum compose_yml::v2::Ports
[−]
[src]
pub enum Ports { Port(u16), Range(u16, u16), }
Either a port, or a range of ports.
Variants
Port(u16)
A single port.
Range(u16, u16)
A range of ports.
Trait Implementations
impl Debug for Ports
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Ports
[src]
fn eq(&self, __arg_0: &Ports) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Ports) -> bool
[src]
This method tests for !=
.
impl Eq for Ports
[src]
impl Clone for Ports
[src]
fn clone(&self) -> Ports
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Ports
[src]
impl From<u16> for Ports
[src]
fn from(port: u16) -> Ports
[src]
Convert a raw port number into a Ports
object. This is used to
make the PortMapping
constructors more ergonomic by automatically
promoting a u16
port number to a Ports
object in the most
common case.
impl Display for Ports
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more