Struct hash_ring::NodeInfo [] [src]

pub struct NodeInfo {
    pub host: &'static str,
    pub port: u16,
}

As a convenience, rust-hash-ring provides a default struct to hold node information. It is optional and you can define your own.

Fields

Trait Implementations

impl Clone for NodeInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NodeInfo
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for NodeInfo
[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 ToString for NodeInfo
[src]

[src]

Converts the given value to a String. Read more