[−][src]Struct dogstatsd::Options
The struct that represents the options available for the Dogstatsd client.
Fields
from_addr: String
The address of the udp socket we'll bind to for sending.
to_addr: String
The address of the udp socket we'll send metrics and events to.
namespace: String
A namespace to prefix all metrics with, joined with a '.'.
Methods
impl Options
[src]
pub fn new(from_addr: &str, to_addr: &str, namespace: &str) -> Self
[src]
Create a new options struct by supplying values for all fields.
Examples
use dogstatsd::Options; let options = Options::new("127.0.0.1:9000", "127.0.0.1:9001", "");
Trait Implementations
impl Default for Options
[src]
fn default() -> Self
[src]
Create a new options struct with all the default settings.
Examples
use dogstatsd::Options; let options = Options::default(); assert_eq!( Options { from_addr: "127.0.0.1:0".into(), to_addr: "127.0.0.1:8125".into(), namespace: String::new(), }, options )
impl PartialEq<Options> for Options
[src]
impl Debug for Options
[src]
Auto Trait Implementations
impl Unpin for Options
impl Sync for Options
impl Send for Options
impl UnwindSafe for Options
impl RefUnwindSafe for Options
Blanket Implementations
impl<T> From<T> for T
[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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,