Struct tracing_wasm::WASMLayerConfigBuilder[][src]

pub struct WASMLayerConfigBuilder { /* fields omitted */ }

Implementations

impl WASMLayerConfigBuilder[src]

pub fn new() -> WASMLayerConfigBuilder[src]

pub fn set_report_logs_in_timings(
    &mut self,
    report_logs_in_timings: bool
) -> &mut WASMLayerConfigBuilder
[src]

Set whether events should appear in performance Timings

pub fn set_max_level(&mut self, max_level: Level) -> &mut WASMLayerConfigBuilder[src]

Set the maximal level on which events should be displayed

pub fn set_console_config(
    &mut self,
    console_config: ConsoleConfig
) -> &mut WASMLayerConfigBuilder
[src]

Set if and how events should be displayed in the browser console

pub fn build(&self) -> WASMLayerConfig[src]

Build the WASMLayerConfig

Trait Implementations

impl Default for WASMLayerConfigBuilder[src]

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<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.