pub struct WASMLayerConfigBuilder { /* private fields */ }
Implementations§
Source§impl WASMLayerConfigBuilder
impl WASMLayerConfigBuilder
pub fn new() -> WASMLayerConfigBuilder
Sourcepub fn set_report_logs_in_timings(
&mut self,
report_logs_in_timings: bool,
) -> &mut WASMLayerConfigBuilder
pub fn set_report_logs_in_timings( &mut self, report_logs_in_timings: bool, ) -> &mut WASMLayerConfigBuilder
Set whether events should appear in performance Timings
Sourcepub fn set_max_level(&mut self, max_level: Level) -> &mut WASMLayerConfigBuilder
pub fn set_max_level(&mut self, max_level: Level) -> &mut WASMLayerConfigBuilder
Set the maximal level on which events should be displayed
Sourcepub fn set_console_config(
&mut self,
console_config: ConsoleConfig,
) -> &mut WASMLayerConfigBuilder
pub fn set_console_config( &mut self, console_config: ConsoleConfig, ) -> &mut WASMLayerConfigBuilder
Set if and how events should be displayed in the browser console
Sourcepub fn build(&self) -> WASMLayerConfig
pub fn build(&self) -> WASMLayerConfig
Build the WASMLayerConfig
Trait Implementations§
Source§impl Default for WASMLayerConfigBuilder
impl Default for WASMLayerConfigBuilder
Source§fn default() -> WASMLayerConfigBuilder
fn default() -> WASMLayerConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WASMLayerConfigBuilder
impl RefUnwindSafe for WASMLayerConfigBuilder
impl Send for WASMLayerConfigBuilder
impl Sync for WASMLayerConfigBuilder
impl Unpin for WASMLayerConfigBuilder
impl UnwindSafe for WASMLayerConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more