Struct hdk::trace::WasmSubscriber[][src]

pub struct WasmSubscriber { /* fields omitted */ }

Trait Implementations

impl Default for WasmSubscriber[src]

impl Subscriber for WasmSubscriber[src]

By implementing WasmSubscriber we integrate the rust tracing crate with the __trace host_fn without inventing some DIY DSL

Currently supports all the event macros for tracing such as trace!, info!, debug!, warn!, error!.

Does NOT support spans, so attempting to #[instrument] a function or similar will panic the wasm.

fn new_span(&self, _attributes: &Attributes<'_>) -> Id[src]

Not really implemented yet. Placeholder logic only.

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<S> SubscriberExt for S where
    S: Subscriber
[src]

impl<T> SubscriberInitExt for T where
    T: Into<Dispatch>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,