Struct influx_db_client::client::UdpClient
source · pub struct UdpClient { /* private fields */ }
Expand description
Udp client
Implementations§
source§impl UdpClient
impl UdpClient
sourcepub fn new<T: Into<String>>(address: T) -> Self
pub fn new<T: Into<String>>(address: T) -> Self
Create a new udp client. panic when T can’t convert to SocketAddr
sourcepub fn add_host<T: Into<String>>(&mut self, address: T)
pub fn add_host<T: Into<String>>(&mut self, address: T)
add udp host. panic when T can’t convert to SocketAddr
sourcepub fn get_host(&self) -> Vec<SocketAddr> ⓘ
pub fn get_host(&self) -> Vec<SocketAddr> ⓘ
View current hosts
Trait Implementations§
source§impl FromIterator<SocketAddr> for UdpClient
impl FromIterator<SocketAddr> for UdpClient
source§fn from_iter<I: IntoIterator<Item = SocketAddr>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = SocketAddr>>(iter: I) -> Self
Create udp client from iterator.