Struct abstract_ns::AddressBuilder [] [src]

pub struct AddressBuilder { /* fields omitted */ }

A builder interface for Address

Example

use abstract_ns::AddressBuilder;

let mut builder = AddressBuilder::new();
builder.add_addresses(&[(1, "127.0.0.1:80".parse().unwrap())]);
let addr = builder.into_address();

Methods

impl AddressBuilder
[src]

Create a new empty address builder

Add set of addresses of the same priority

You must add all addresses of the same priority with a single call to this function. Next call to add_addresses will add addresses with smaller priority

Finish building the Address object

Returns none if there is no single address in the builder