Struct influxc::ClientBuilder[][src]

pub struct ClientBuilder { /* fields omitted */ }

Builder to piece by piece assemble a Client instance

Implementations

impl ClientBuilder[src]

pub fn new(url: String, creds: Credentials) -> Self[src]

Create builder with the most basic information necessary

pub fn backlog<B: Backlog + 'static>(self, backlog: B) -> Self[src]

Add backlog to client, so records and measurements get stored as log as they fail to be committed. Either due to conectivity or misconfiguration.

pub fn finish(self) -> Result<Client, InfluxError>[src]

Consume this builder to assemble and return the final Client instance for usage.

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.