[][src]Struct ackorelic::CustomEvent

#[must_use]
pub struct CustomEvent<'a> { /* fields omitted */ }

A custom event to be added to a transaction.

Methods

impl<'a> CustomEvent<'a>[src]

pub fn add_attribute<'b, T>(&self, name: &str, attribute: T) -> Result<&Self> where
    T: Into<Attribute<'b>>, 
[src]

Add an attribute to this custom event.

pub fn record(self)[src]

Record this custom event, consuming it.

Trait Implementations

impl<'a> Drop for CustomEvent<'a>[src]

fn drop(&mut self)[src]

If the custom event wasn't ever recorded, we should discard it to free the memory.

Auto Trait Implementations

impl<'a> !Sync for CustomEvent<'a>

impl<'a> !Send for CustomEvent<'a>

impl<'a> Unpin for CustomEvent<'a>

impl<'a> RefUnwindSafe for CustomEvent<'a>

impl<'a> UnwindSafe for CustomEvent<'a>

Blanket Implementations

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.

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

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

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

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more