Trait nats::IntoServerList
source · pub trait IntoServerList {
// Required method
fn into_server_list(self) -> Result<Vec<ServerAddress>>;
}
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 Methods§
sourcefn into_server_list(self) -> Result<Vec<ServerAddress>>
fn into_server_list(self) -> Result<Vec<ServerAddress>>
Convert the instance into a list of ServerAddress
es.