[−][src]Struct zoomies::Event
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
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]
T: 'static + ?Sized,
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> 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>,