[][src]Struct influx_db_client::client::UdpClient

pub struct UdpClient { /* fields omitted */ }

Udp client

Implementations

impl UdpClient[src]

pub fn new(address: SocketAddr) -> Self[src]

Create a new udp client.

pub fn add_host(&mut self, address: SocketAddr)[src]

add udp host.

pub fn get_host(&self) -> &[SocketAddr][src]

View current hosts

pub fn write_points(&self, points: Points) -> Result<(), Error>[src]

Send Points to influxdb.

pub fn write_point(&self, point: Point) -> Result<(), Error>[src]

Send Point to influxdb.

Trait Implementations

impl FromIterator<SocketAddr> for UdpClient[src]

fn from_iter<I: IntoIterator<Item = SocketAddr>>(iter: I) -> Self[src]

Create udp client from iterator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.