pub struct Client { /* private fields */ }Expand description
A dogstatsd-client that flushes stats to a given endpoint.
Implementations§
Source§impl Client
impl Client
Sourcepub fn send_owned(&self, actions: Vec<DogStatsDActionOwned>)
pub fn send_owned(&self, actions: Vec<DogStatsDActionOwned>)
Send a vector of DogStatsDActionOwned, this is the same as send except it uses the “owned”
version of DogStatsDAction. See the docs for DogStatsDActionOwned for details.
Sourcepub fn send<'a, T: AsRef<str>, V: IntoIterator<Item = &'a Tag>>(
&self,
actions: Vec<DogStatsDAction<'a, T, V>>,
)
pub fn send<'a, T: AsRef<str>, V: IntoIterator<Item = &'a Tag>>( &self, actions: Vec<DogStatsDAction<'a, T, V>>, )
Send a vector of DogStatsDAction, this is the same as send_owned except it only borrows
the provided values.See the docs for DogStatsDActionOwned for details.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more