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§

source

fn into_server_list(self) -> Result<Vec<ServerAddress>>

Convert the instance into a list of ServerAddresses.

Implementations on Foreign Types§

source§

impl IntoServerList for String

source§

impl IntoServerList for Vec<ServerAddress>

source§

impl IntoServerList for Result<Vec<ServerAddress>>

source§

impl<'s> IntoServerList for &'s str

source§

impl<'s> IntoServerList for &'s String

source§

impl<'s> IntoServerList for &'s [&'s str]

source§

impl<'s, const N: usize> IntoServerList for &'s [&'s str; N]

Implementors§