Struct sp_tracing::WasmMetadata[][src]

pub struct WasmMetadata {
    pub name: Vec<u8>,
    pub target: Vec<u8>,
    pub level: WasmLevel,
    pub file: Vec<u8>,
    pub line: u32,
    pub module_path: Vec<u8>,
    pub is_span: bool,
    pub fields: WasmFields,
}

Metadata provides generic information about the specifc location of the span! or event! call on the wasm-side.

Fields

name: Vec<u8>

The name given to event!/span!, &'static str converted to bytes

target: Vec<u8>

The given target to event!/span! – or module-name, &'static str converted to bytes

level: WasmLevel

The level of this entry

file: Vec<u8>

The file this was emitted from – useful for debugging; &'static str converted to bytes

line: u32

The specific line number in the file – useful for debugging

module_path: Vec<u8>

The module path; &'static str converted to bytes

is_span: bool

Whether this is a call to span! or event!

fields: WasmFields

The list of fields specified in the call

Trait Implementations

impl Clone for WasmMetadata[src]

impl Debug for WasmMetadata[src]

impl Decode for WasmMetadata[src]

impl Default for WasmMetadata[src]

impl Encode for WasmMetadata[src]

impl EncodeLike<WasmMetadata> for WasmMetadata[src]

impl From<&'_ Metadata<'_>> for WasmMetadata[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<S> Codec for S where
    S: Encode + Decode
[src]

impl<T> DecodeAll for T where
    T: Decode
[src]

impl<T> DecodeLimit for T where
    T: Decode
[src]

impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ T> for T where
    T: Encode
[src]

impl<'_, T> EncodeLike<&'_ mut T> for T where
    T: Encode
[src]

impl<T> EncodeLike<Arc<T>> for T where
    T: Encode
[src]

impl<T> EncodeLike<Box<T, Global>> for T where
    T: Encode
[src]

impl<'a, T> EncodeLike<Cow<'a, T>> for T where
    T: Encode + ToOwned
[src]

impl<T> EncodeLike<Rc<T>> for T where
    T: Encode
[src]

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

impl<S> FullCodec for S where
    S: Decode + FullEncode
[src]

impl<S> FullEncode for S where
    S: Encode + EncodeLike<S>, 
[src]

impl<T> Instrument for T[src]

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

impl<T> KeyedVec for T where
    T: Codec
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.