Struct sp_tracing::WasmEntryAttributes [−][src]
pub struct WasmEntryAttributes {
pub parent_id: Option<u64>,
pub metadata: WasmMetadata,
pub fields: WasmValuesSet,
}Span or Event Attributes
Fields
parent_id: Option<u64>the parent, if directly specified – otherwise assume most inner span
metadata: WasmMetadatathe metadata of the location
fields: WasmValuesSetthe Values provided
Implementations
impl WasmEntryAttributes[src]
impl WasmEntryAttributes[src]pub fn emit(self: WasmEntryAttributes)[src]
convert the given Attributes to an event and emit it using tracing_core.
Trait Implementations
impl Clone for WasmEntryAttributes[src]
impl Clone for WasmEntryAttributes[src]fn clone(&self) -> WasmEntryAttributes[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Decode for WasmEntryAttributes[src]
impl Decode for WasmEntryAttributes[src]impl Default for WasmEntryAttributes[src]
impl Default for WasmEntryAttributes[src]impl Encode for WasmEntryAttributes[src]
impl Encode for WasmEntryAttributes[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<&'_ Attributes<'_>> for WasmEntryAttributes[src]
impl From<&'_ Attributes<'_>> for WasmEntryAttributes[src]fn from(attrs: &Attributes<'_>) -> WasmEntryAttributes[src]
impl From<&'_ Event<'_>> for WasmEntryAttributes[src]
impl From<&'_ Event<'_>> for WasmEntryAttributes[src]fn from(evt: &Event<'_>) -> WasmEntryAttributes[src]
impl From<WasmEntryAttributes> for Span[src]
impl From<WasmEntryAttributes> for Span[src]fn from(a: WasmEntryAttributes) -> Span[src]
impl EncodeLike<WasmEntryAttributes> for WasmEntryAttributes[src]
Auto Trait Implementations
impl RefUnwindSafe for WasmEntryAttributes
impl Send for WasmEntryAttributes
impl Sync for WasmEntryAttributes
impl Unpin for WasmEntryAttributes
impl UnwindSafe for WasmEntryAttributes
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>,