pub struct BenchmarkEvent {
pub run_id: String,
pub session_id: String,
pub platform: String,
pub source_protocol: Option<String>,
pub event_name: String,
pub timestamp_ns: u64,
pub elapsed_ns: u64,
pub thread: Option<String>,
pub attributes: BTreeMap<String, String>,
}Expand description
One high-resolution benchmark event emitted by a host playback session.
Fields§
§run_id: String§session_id: String§platform: String§source_protocol: Option<String>§event_name: String§timestamp_ns: u64§elapsed_ns: u64§thread: Option<String>§attributes: BTreeMap<String, String>Implementations§
Source§impl BenchmarkEvent
impl BenchmarkEvent
pub fn validate(&self) -> Result<(), BenchmarkSinkError>
Trait Implementations§
Source§impl Clone for BenchmarkEvent
impl Clone for BenchmarkEvent
Source§fn clone(&self) -> BenchmarkEvent
fn clone(&self) -> BenchmarkEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BenchmarkEvent
impl Debug for BenchmarkEvent
Source§impl<'de> Deserialize<'de> for BenchmarkEvent
impl<'de> Deserialize<'de> for BenchmarkEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BenchmarkEvent
Source§impl PartialEq for BenchmarkEvent
impl PartialEq for BenchmarkEvent
Source§impl Serialize for BenchmarkEvent
impl Serialize for BenchmarkEvent
impl StructuralPartialEq for BenchmarkEvent
Auto Trait Implementations§
impl Freeze for BenchmarkEvent
impl RefUnwindSafe for BenchmarkEvent
impl Send for BenchmarkEvent
impl Sync for BenchmarkEvent
impl Unpin for BenchmarkEvent
impl UnsafeUnpin for BenchmarkEvent
impl UnwindSafe for BenchmarkEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more