Struct influx_db_client::client::UdpClient [−][src]
pub struct UdpClient { /* fields omitted */ }
Udp client
Methods
impl UdpClient
[src]
impl UdpClient
pub fn new<T: Into<String>>(address: T) -> Self
[src]
pub fn new<T: Into<String>>(address: T) -> Self
Create a new udp client. panic when T can't convert to SocketAddr
pub fn add_host<T: Into<String>>(&mut self, address: T)
[src]
pub fn add_host<T: Into<String>>(&mut self, address: T)
add udp host. panic when T can't convert to SocketAddr
pub fn get_host(&self) -> Vec<SocketAddr>
[src]
pub fn get_host(&self) -> Vec<SocketAddr>
View current hosts
pub fn write_points(&self, points: Points) -> Result<(), Error>
[src]
pub fn write_points(&self, points: Points) -> Result<(), Error>
Send Points to influxdb.
pub fn write_point(&self, point: Point) -> Result<(), Error>
[src]
pub fn write_point(&self, point: Point) -> Result<(), Error>
Send Point to influxdb.
Trait Implementations
impl FromIterator<SocketAddr> for UdpClient
[src]
impl FromIterator<SocketAddr> for UdpClient
fn from_iter<I: IntoIterator<Item = SocketAddr>>(iter: I) -> Self
[src]
fn from_iter<I: IntoIterator<Item = SocketAddr>>(iter: I) -> Self
Create udp client from iterator.