Struct hdk::trace::WasmSubscriber [−][src]
Trait Implementations
impl Default for WasmSubscriber
[src]
fn default() -> 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 enabled(&self, _metadata: &Metadata<'_>) -> bool
[src]
fn new_span(&self, _attributes: &Attributes<'_>) -> Id
[src]
Not really implemented yet. Placeholder logic only.
fn record(&self, _span: &Id, _values: &Record<'_>)
[src]
fn record_follows_from(&self, _span: &Id, _follows: &Id)
[src]
fn event(&self, event: &Event<'_>)
[src]
fn enter(&self, _span: &Id)
[src]
fn exit(&self, _span: &Id)
[src]
pub fn register_callsite(
&self,
metadata: &'static Metadata<'static>
) -> Interest
[src]
&self,
metadata: &'static Metadata<'static>
) -> Interest
pub fn max_level_hint(&self) -> Option<LevelFilter>
[src]
pub fn clone_span(&self, id: &Id) -> Id
[src]
pub fn drop_span(&self, _id: Id)
[src]
pub fn try_close(&self, id: Id) -> bool
[src]
pub fn current_span(&self) -> Current
[src]
pub unsafe fn downcast_raw(&self, id: TypeId) -> Option<*const ()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for WasmSubscriber
impl Send for WasmSubscriber
impl Sync for WasmSubscriber
impl Unpin for WasmSubscriber
impl UnwindSafe for WasmSubscriber
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
[src]
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S> SubscriberExt for S where
S: Subscriber,
[src]
S: Subscriber,
impl<T> SubscriberInitExt for T where
T: Into<Dispatch>,
[src]
T: Into<Dispatch>,
pub fn set_default(self) -> DefaultGuard
[src]
pub fn try_init(self) -> Result<(), TryInitError>
[src]
pub fn init(self)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,