pub struct PySpyStackTrace {
pub pid: i32,
pub thread_id: u64,
pub thread_name: Option<String>,
pub os_thread_id: Option<u64>,
pub active: bool,
pub owns_gil: bool,
pub frames: Vec<PySpyFrame>,
}
Expand description
A stack trace from PySpy. Wrapper is needed to have our own derives.
Fields§
§pid: i32
The process id than generated this stack trace
thread_id: u64
The python thread id for this stack trace
thread_name: Option<String>
The python thread name for this stack trace
os_thread_id: Option<u64>
The OS thread id for this stack tracee
active: bool
Whether or not the thread was active
owns_gil: bool
Whether or not the thread held the GIL
frames: Vec<PySpyFrame>
The frames
Trait Implementations§
Source§impl Clone for PySpyStackTrace
impl Clone for PySpyStackTrace
Source§fn clone(&self) -> PySpyStackTrace
fn clone(&self) -> PySpyStackTrace
Returns a duplicate of the value. Read more
1.0.0 · 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 PySpyStackTrace
impl Debug for PySpyStackTrace
Source§impl<'de> Deserialize<'de> for PySpyStackTrace
impl<'de> Deserialize<'de> for PySpyStackTrace
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
Source§impl From<StackTrace> for PySpyStackTrace
impl From<StackTrace> for PySpyStackTrace
Source§impl PartialEq for PySpyStackTrace
impl PartialEq for PySpyStackTrace
Source§impl Serialize for PySpyStackTrace
impl Serialize for PySpyStackTrace
impl StructuralPartialEq for PySpyStackTrace
Auto Trait Implementations§
impl Freeze for PySpyStackTrace
impl RefUnwindSafe for PySpyStackTrace
impl Send for PySpyStackTrace
impl Sync for PySpyStackTrace
impl Unpin for PySpyStackTrace
impl UnwindSafe for PySpyStackTrace
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more