Struct sentry_core::protocol::Sample
source · pub struct Sample {
pub stack_id: u32,
pub thread_id: u64,
pub elapsed_since_start_ns: u64,
}
Expand description
Single sample of a profile
Fields§
§stack_id: u32
ID of the relative stack
thread_id: u64
Thread ID
elapsed_since_start_ns: u64
Timestamp at which this sample was collected relative to the start of the profiler
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sample
impl<'de> Deserialize<'de> for Sample
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Sample, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Sample, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Sample> for Sample
impl PartialEq<Sample> for Sample
source§impl Serialize for Sample
impl Serialize for Sample
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Sample
impl StructuralEq for Sample
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.