[][src]Enum functiontrace_server::function_trace::FunctionTrace

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,
    },
}

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

Fields of Call

time: Durationfunc_name: Stringfilename: Stringlinenumber: u32
Return

Fields of Return

time: Durationfunc_name: String
NativeCall

Fields of NativeCall

time: Durationfunc_name: Stringmodule_name: String
NativeReturn

Fields of NativeReturn

time: Durationfunc_name: String
Exception

Fields of Exception

time: Durationexception_type: Stringexception_value: Stringfilename: Stringlinenumber: u32
Log

Fields of Log

time: Durationlog_type: Stringlog_value: String
Import

Fields of Import

time: Durationmodule_name: String
Allocation

Fields of Allocation

time: Durationdetails: AllocationDetails

Trait Implementations

impl Debug for FunctionTrace[src]

impl<'de> Deserialize<'de> for FunctionTrace[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.