[][src]Struct measureme::RawEvent

#[repr(C)]
pub struct RawEvent {
    pub event_kind: StringId,
    pub event_id: StringId,
    pub thread_id: u32,
    pub start_time_lower: u32,
    pub end_time_lower: u32,
    pub start_and_end_upper: u32,
}

RawEvent is how events are stored on-disk. If you change this struct, make sure that you increment file_header::CURRENT_FILE_FORMAT_VERSION.

Fields

event_kind: StringIdevent_id: StringIdthread_id: u32start_time_lower: u32end_time_lower: u32start_and_end_upper: u32

Methods

impl RawEvent[src]

pub fn new_interval(
    event_kind: StringId,
    event_id: StringId,
    thread_id: u32,
    start_nanos: u64,
    end_nanos: u64
) -> RawEvent
[src]

pub fn new_instant(
    event_kind: StringId,
    event_id: StringId,
    thread_id: u32,
    timestamp_ns: u64
) -> RawEvent
[src]

pub fn start_nanos(&self) -> u64[src]

pub fn end_nanos(&self) -> u64[src]

pub fn is_instant(&self) -> bool[src]

pub fn serialize(&self, bytes: &mut [u8])[src]

pub fn deserialize(bytes: &[u8]) -> RawEvent[src]

Trait Implementations

impl Default for RawEvent[src]

impl Eq for RawEvent[src]

impl PartialEq<RawEvent> for RawEvent[src]

impl Debug for RawEvent[src]

impl StructuralPartialEq for RawEvent[src]

impl StructuralEq for RawEvent[src]

Auto Trait Implementations

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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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