Enum jsonrpc_server_utils::hosts::Port [] [src]

pub enum Port {
    None,
    Pattern(String),
    Fixed(u16),
}

Port pattern

Variants

No port specified (default port)

Port specified as a wildcard pattern

Fixed numeric port

Trait Implementations

impl Clone for Port
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Port
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Port
[src]

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

This method tests for !=.

impl Eq for Port
[src]

impl Debug for Port
[src]

Formats the value using the given formatter.

impl From<Option<u16>> for Port
[src]

Performs the conversion.

impl From<u16> for Port
[src]

Performs the conversion.