Enum compose_yml::v2::Ports [] [src]

pub enum Ports {
    Port(u16),
    Range(u16u16),
}

Either a port, or a range of ports.

Variants

A single port.

A range of ports.

Trait Implementations

impl Debug for Ports
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Ports
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Ports
[src]

impl Clone for Ports
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Ports
[src]

impl From<u16> for Ports
[src]

[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]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Ports
[src]

The associated error which can be returned from parsing.

[src]

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

Auto Trait Implementations

impl Send for Ports

impl Sync for Ports