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: WasmLevelThe level of this entry
file: Vec<u8>The file this was emitted from – useful for debugging; &'static str converted to bytes
line: u32The specific line number in the file – useful for debugging
module_path: Vec<u8>The module path; &'static str converted to bytes
is_span: boolWhether this is a call to span! or event!
fields: WasmFieldsThe list of fields specified in the call
Trait Implementations
impl Clone for WasmMetadata[src]
impl Clone for WasmMetadata[src]fn clone(&self) -> WasmMetadata[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Decode for WasmMetadata[src]
impl Decode for WasmMetadata[src]impl Default for WasmMetadata[src]
impl Default for WasmMetadata[src]impl Encode for WasmMetadata[src]
impl Encode for WasmMetadata[src]fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)[src]
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
pub fn size_hint(&self) -> usize[src]
pub fn encode(&self) -> Vec<u8, Global>[src]
pub fn using_encoded<R, F>(&self, f: F) -> R where
F: FnOnce(&[u8]) -> R, [src]
F: FnOnce(&[u8]) -> R,
pub fn encoded_size(&self) -> usize[src]
impl From<&'_ Metadata<'_>> for WasmMetadata[src]
impl From<&'_ Metadata<'_>> for WasmMetadata[src]fn from(wm: &Metadata<'_>) -> WasmMetadata[src]
impl From<&'_ WasmMetadata> for &'static Metadata<'static>[src]
impl From<&'_ WasmMetadata> for &'static Metadata<'static>[src]fn from(wm: &WasmMetadata) -> &'static Metadata<'static>[src]
impl EncodeLike<WasmMetadata> for WasmMetadata[src]
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
impl<T> DecodeLimit for T where
T: Decode, [src]
impl<T> DecodeLimit for T where
T: Decode, [src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<S> Codec for S where
S: Decode + Encode, [src]
S: Decode + Encode,
impl<'_, '_, T> EncodeLike<&'_ &'_ T> for T where
T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode, [src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode, [src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode, [src]
T: Encode,
impl<'a, T> EncodeLike<Cow<'a, T>> for T where
T: ToOwned + Encode, [src]
T: ToOwned + Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode, [src]
T: Encode,
impl<S> FullCodec for S where
S: Decode + FullEncode, [src]
S: Decode + FullEncode,
impl<S> FullEncode for S where
S: Encode + EncodeLike<S>, [src]
S: Encode + EncodeLike<S>,