Struct sentry::protocol::Thread
[−]
[src]
pub struct Thread { pub id: Option<ThreadId>, pub name: Option<String>, pub stacktrace: Option<Stacktrace>, pub raw_stacktrace: Option<Stacktrace>, pub crashed: bool, pub current: bool, }
Represents a single thread.
Fields
id: Option<ThreadId>
The optional ID of the thread (usually an integer)
name: Option<String>
The optional name of the thread.
stacktrace: Option<Stacktrace>
If the thread suspended or crashed a stacktrace can be attached here.
raw_stacktrace: Option<Stacktrace>
Optional raw stacktrace.
crashed: bool
indicates a crashed thread
current: bool
indicates that the thread was not suspended when the event was created.
Trait Implementations
impl PartialEq<Thread> for Thread
[src]
fn eq(&self, __arg_0: &Thread) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Thread) -> bool
[src]
This method tests for !=
.
impl<'de> Deserialize<'de> for Thread where
Thread: Default,
[src]
Thread: Default,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Thread, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Thread, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Clone for Thread
[src]
fn clone(&self) -> Thread
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Serialize for Thread
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&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 Debug for Thread
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more