[][src]Struct dipstick::Statsd

pub struct Statsd { /* fields omitted */ }

Statsd output holds a datagram (UDP) socket to a statsd server. The socket is shared between scopes opened from the output.

Methods

impl Statsd
[src]

pub fn send_to<ADDR: ToSocketAddrs>(address: ADDR) -> Result<Statsd>
[src]

Send metrics to a statsd server at the address and port provided.

Trait Implementations

impl Sampled for Statsd
[src]

fn sampled(&self, sampling: Sampling) -> Self
[src]

Perform random sampling of values according to the specified rate.

fn get_sampling(&self) -> Option<Sampling>
[src]

Get the sampling strategy for this component, if any.

impl Buffered for Statsd
[src]

fn buffered(&self, buffering: Buffering) -> Self
[src]

Return a clone with the specified buffering set.

fn get_buffering(&self) -> Option<Buffering>
[src]

Return the buffering.

impl Output for Statsd
[src]

type SCOPE = StatsdScope

The type of Scope returned byt this output.

impl CachedOutput for Statsd
[src]

fn cached(self, max_size: usize) -> OutputCache
[src]

Wrap this output with an asynchronous dispatch queue of specified length.

impl QueuedOutput for Statsd
[src]

fn queued(self, max_size: usize) -> OutputQueue
[src]

Wrap this output with an asynchronous dispatch queue.

impl Clone for Statsd
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Statsd
[src]

Auto Trait Implementations

impl Send for Statsd

impl Sync for Statsd

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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