Struct puffin::Record[][src]

pub struct Record<'s> {
    pub start_ns: NanoSecond,
    pub duration_ns: NanoSecond,
    pub id: &'s str,
    pub location: &'s str,
    pub data: &'s str,
}

Used when parsing a Stream.

Fields

start_ns: NanoSecondduration_ns: NanoSecondid: &'s str

e.g. function name. Mandatory. Used to identify records. Does not need to be globally unique, just unique in the parent scope. Example: “load_image”

location: &'s str

e.g. file name. Optional. Used for finding the location of the profiler scope. Example: “my_library/image_loader.rs:52”

data: &'s str

e.g. function argument, like a mesh name. Optional. Example: “image.png”.

Implementations

impl<'s> Record<'s>[src]

pub fn stop_ns(&self) -> NanoSecond[src]

Trait Implementations

impl<'s> Clone for Record<'s>[src]

impl<'s> Copy for Record<'s>[src]

impl<'s> Debug for Record<'s>[src]

impl<'s> PartialEq<Record<'s>> for Record<'s>[src]

impl<'s> StructuralPartialEq for Record<'s>[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for Record<'s>

impl<'s> Send for Record<'s>

impl<'s> Sync for Record<'s>

impl<'s> Unpin for Record<'s>

impl<'s> UnwindSafe for Record<'s>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.