[−][src]Struct influx_db_client::client::UdpClient
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
impl RefUnwindSafe for UdpClient
impl Send for UdpClient
impl Sync for UdpClient
impl Unpin for UdpClient
impl UnwindSafe for UdpClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,