pub struct DebugConfig { /* private fields */ }Expand description
Debug configuration
Implementations§
Source§impl DebugConfig
impl DebugConfig
Sourcepub fn set_log_level(self, level: LogLevel) -> Self
pub fn set_log_level(self, level: LogLevel) -> Self
Set log level
Sourcepub fn set_console_output(self, enabled: bool) -> Self
pub fn set_console_output(self, enabled: bool) -> Self
Enable/disable console output
Sourcepub fn set_performance_tracking(self, enabled: bool) -> Self
pub fn set_performance_tracking(self, enabled: bool) -> Self
Enable/disable performance tracking
Sourcepub fn set_memory_tracking(self, enabled: bool) -> Self
pub fn set_memory_tracking(self, enabled: bool) -> Self
Enable/disable memory tracking
Sourcepub fn set_gpu_profiling(self, enabled: bool) -> Self
pub fn set_gpu_profiling(self, enabled: bool) -> Self
Enable/disable GPU profiling
Sourcepub fn set_max_log_entries(self, max: usize) -> Self
pub fn set_max_log_entries(self, max: usize) -> Self
Set maximum number of log entries to retain
Sourcepub fn development() -> Self
pub fn development() -> Self
Create a development configuration with detailed logging
Sourcepub fn production() -> Self
pub fn production() -> Self
Create a production configuration with minimal logging
Trait Implementations§
Source§impl Clone for DebugConfig
impl Clone for DebugConfig
Source§fn clone(&self) -> DebugConfig
fn clone(&self) -> DebugConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DebugConfig
impl Debug for DebugConfig
Source§impl Default for DebugConfig
impl Default for DebugConfig
Source§impl From<DebugConfig> for JsValue
impl From<DebugConfig> for JsValue
Source§fn from(value: DebugConfig) -> Self
fn from(value: DebugConfig) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DebugConfig
impl FromWasmAbi for DebugConfig
Source§impl IntoWasmAbi for DebugConfig
impl IntoWasmAbi for DebugConfig
Source§impl LongRefFromWasmAbi for DebugConfig
impl LongRefFromWasmAbi for DebugConfig
Source§impl OptionFromWasmAbi for DebugConfig
impl OptionFromWasmAbi for DebugConfig
Source§impl OptionIntoWasmAbi for DebugConfig
impl OptionIntoWasmAbi for DebugConfig
Source§impl RefFromWasmAbi for DebugConfig
impl RefFromWasmAbi for DebugConfig
Source§type Anchor = RcRef<DebugConfig>
type Anchor = RcRef<DebugConfig>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for DebugConfig
impl RefMutFromWasmAbi for DebugConfig
Source§impl TryFromJsValue for DebugConfig
impl TryFromJsValue for DebugConfig
Source§impl VectorFromWasmAbi for DebugConfig
impl VectorFromWasmAbi for DebugConfig
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DebugConfig]>
Source§impl VectorIntoWasmAbi for DebugConfig
impl VectorIntoWasmAbi for DebugConfig
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DebugConfig]>) -> Self::Abi
Source§impl WasmDescribeVector for DebugConfig
impl WasmDescribeVector for DebugConfig
impl SupportsConstructor for DebugConfig
impl SupportsInstanceProperty for DebugConfig
impl SupportsStaticProperty for DebugConfig
Auto Trait Implementations§
impl Freeze for DebugConfig
impl RefUnwindSafe for DebugConfig
impl Send for DebugConfig
impl Sync for DebugConfig
impl Unpin for DebugConfig
impl UnsafeUnpin for DebugConfig
impl UnwindSafe for DebugConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.