pub struct Logger { /* private fields */ }
Expand description
Safe logger that only provides basic functionality without FFI callbacks
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn attach_stream(
&mut self,
_stream: Arc<Mutex<dyn LogStream>>,
) -> Result<()>
👎Deprecated: Custom log streams removed due to FFI safety issues. Use enable_verbose_logging instead.
pub fn attach_stream( &mut self, _stream: Arc<Mutex<dyn LogStream>>, ) -> Result<()>
Attach a log stream
DEPRECATED: This method is no longer functional due to FFI callback safety issues. It will return an error to maintain API compatibility.
Sourcepub fn detach_stream(
&mut self,
_stream: Arc<Mutex<dyn LogStream>>,
) -> Result<()>
👎Deprecated: Custom log streams removed due to FFI safety issues.
pub fn detach_stream( &mut self, _stream: Arc<Mutex<dyn LogStream>>, ) -> Result<()>
Detach a specific log stream
DEPRECATED: This method is no longer functional.
Sourcepub fn detach_all_streams(&mut self)
👎Deprecated: Custom log streams removed due to FFI safety issues.
pub fn detach_all_streams(&mut self)
Detach all log streams
DEPRECATED: This method is no longer functional.
Sourcepub fn enable_verbose_logging(&mut self, enable: bool)
pub fn enable_verbose_logging(&mut self, enable: bool)
Enable or disable verbose logging
Sourcepub fn is_verbose_enabled(&self) -> bool
pub fn is_verbose_enabled(&self) -> bool
Check if verbose logging is enabled
Sourcepub fn get_last_error(&self) -> Option<String>
pub fn get_last_error(&self) -> Option<String>
Get the last error message from Assimp This is a safe way to get logging information without callbacks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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