[−][src]Struct measureme::RawEvent
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: StringId
event_id: EventId
thread_id: u32
start_time_lower: u32
end_time_lower: u32
start_and_end_upper: u32
Implementations
impl RawEvent
[src]
pub fn new_interval(
event_kind: StringId,
event_id: EventId,
thread_id: u32,
start_nanos: u64,
end_nanos: u64
) -> RawEvent
[src]
event_kind: StringId,
event_id: EventId,
thread_id: u32,
start_nanos: u64,
end_nanos: u64
) -> RawEvent
pub fn new_instant(
event_kind: StringId,
event_id: EventId,
thread_id: u32,
timestamp_ns: u64
) -> RawEvent
[src]
event_kind: StringId,
event_id: EventId,
thread_id: u32,
timestamp_ns: u64
) -> RawEvent
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 Debug for RawEvent
[src]
impl Default for RawEvent
[src]
impl Eq for RawEvent
[src]
impl PartialEq<RawEvent> for RawEvent
[src]
impl StructuralEq for RawEvent
[src]
impl StructuralPartialEq for RawEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawEvent
impl Send for RawEvent
impl Sync for RawEvent
impl Unpin for RawEvent
impl UnwindSafe for RawEvent
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>,