[][src]Struct zoomies::Event

pub struct Event { /* fields omitted */ }

Rust representation of the DogStatsD Datagram Event.

Implementations

impl Event[src]

pub fn new() -> Self[src]

Creates a new Event with default options..

You probably don't want this by itself.

pub fn title(&mut self, title: &str) -> &mut Self[src]

Set the event Title...

pub fn text(&mut self, text: &str) -> &mut Self[src]

pub fn timestamp(&mut self, ts: SystemTime) -> &mut Self[src]

pub fn hostname(&mut self, host: &str) -> &mut Self[src]

pub fn agg_key(&mut self, agg_key: &str) -> &mut Self[src]

pub fn priority(&mut self, priority: Priority) -> &mut Self[src]

pub fn source_type_name(&mut self, name: &str) -> &mut Self[src]

pub fn alert_type(&mut self, alert_type: AlertType) -> &mut Self[src]

pub fn build(&mut self) -> Result<Event, &'static str>[src]

Trait Implementations

impl DatagramFormat for Event[src]

impl Default for Event[src]

Auto Trait Implementations

impl RefUnwindSafe for Event

impl Send for Event

impl Sync for Event

impl Unpin for Event

impl UnwindSafe for Event

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.