Struct sentry_core::protocol::Thread
source · 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,
}
Expand description
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
True if this is the crashed thread.
current: bool
Indicates that the thread was not suspended when the event was created.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Thread
impl<'de> Deserialize<'de> for Thread
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Thread, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Thread, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Thread
impl Serialize for Thread
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 StructuralPartialEq for Thread
Auto Trait Implementations§
impl Freeze for Thread
impl RefUnwindSafe for Thread
impl Send for Thread
impl Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)