pub trait ToServerAddrs {
    type Iter: Iterator<Item = ServerAddr>;

    fn to_server_addrs(&self) -> Result<Self::Iter>;
}
Expand description

Capability to convert into a list of NATS server addresses.

There are several implementations ensuring the easy passing of one or more server addresses to functions like crate::connect().

Required Associated Types

Returned iterator over socket addresses which this type may correspond to.

Required Methods

Implementations on Foreign Types

Implementors