pub enum FunctionTrace {
RegisterThread(ThreadRegistration),
Call {
time: Duration,
func_name: String,
filename: String,
linenumber: u32,
},
Return {
time: Duration,
func_name: String,
},
NativeCall {
time: Duration,
func_name: String,
module_name: String,
},
NativeReturn {
time: Duration,
func_name: String,
},
Exception {
time: Duration,
exception_type: String,
exception_value: String,
filename: String,
linenumber: u32,
},
Log {
time: Duration,
log_type: String,
log_value: String,
},
Import {
time: Duration,
module_name: String,
},
Allocation {
time: Duration,
details: AllocationDetails,
},
}
Expand description
A representation of the various trace messages a client thread can send us during normal tracing operation.
Variants
RegisterThread(ThreadRegistration)
A request to register this as a new thread.
NOTE: This must be sent as the first message from a new thread, and may not be sent twice by any thread.
Call
Return
NativeCall
NativeReturn
Exception
Log
Import
Allocation
Trait Implementations
sourceimpl Debug for FunctionTrace
impl Debug for FunctionTrace
sourceimpl<'de> Deserialize<'de> for FunctionTrace
impl<'de> Deserialize<'de> for FunctionTrace
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for FunctionTrace
impl Send for FunctionTrace
impl Sync for FunctionTrace
impl Unpin for FunctionTrace
impl UnwindSafe for FunctionTrace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more