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, }
Expand description
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
Attempt to deserialise the value from input.
Attempt to skip the encoded value from input. Read more
fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
Convert self to a slice and append it to the destination.
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WasmMetadata
impl Send for WasmMetadata
impl Sync for WasmMetadata
impl Unpin for WasmMetadata
impl UnwindSafe for WasmMetadata
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,