[][src]Struct metrical::ConfigurationBuilder

pub struct ConfigurationBuilder { /* fields omitted */ }

Helper to build a configuration piece by piece.

Implementations

impl ConfigurationBuilder[src]

pub fn new() -> Self[src]

pub fn ip_addr(self, ip_addr: IpAddr) -> Self[src]

pub fn port(self, port: u16) -> Self[src]

pub fn flush_after_amount(self, amount: Option<usize>) -> Self[src]

pub fn flush_after_interval(self, interval: Option<u64>) -> Self[src]

pub fn protocol(self, protocol: Protocol) -> Self[src]

pub fn network_protocol(self, protocol: NetworkProtocol) -> Self[src]

pub fn namespace(self, namespace: Option<Namespace>) -> Self[src]

pub fn build(self) -> Result<Configuration, MetricalError>[src]

Trait Implementations

impl Default for ConfigurationBuilder[src]

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, 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.