pub struct ServerLogger { /* private fields */ }
Expand description
Server logger.
Implementations§
Source§impl ServerLogger
impl ServerLogger
Sourcepub fn profile_level(&self) -> Option<ProfileLevel>
pub fn profile_level(&self) -> Option<ProfileLevel>
Returns the profile level, none if profiling is deactivated.
Sourcepub fn compilation_activated(&self) -> bool
pub fn compilation_activated(&self) -> bool
Returns true if compilation info should be logged.
Sourcepub fn log_compilation<I>(&self, arg: &I)where
I: Display,
pub fn log_compilation<I>(&self, arg: &I)where
I: Display,
Log the argument to a file when the compilation logger is activated.
Sourcepub fn register_execution(&self, name: impl Display)
pub fn register_execution(&self, name: impl Display)
Register a profiled task without timing.
Sourcepub fn register_profiled(&self, name: impl Display, duration: ProfileDuration)
pub fn register_profiled(&self, name: impl Display, duration: ProfileDuration)
Register a profiled task.
Sourcepub fn profile_summary(&self)
pub fn profile_summary(&self)
Show the profiling summary if activated and reset its state.
Trait Implementations§
Source§impl Debug for ServerLogger
impl Debug for ServerLogger
Auto Trait Implementations§
impl Freeze for ServerLogger
impl RefUnwindSafe for ServerLogger
impl Send for ServerLogger
impl Sync for ServerLogger
impl Unpin for ServerLogger
impl UnwindSafe for ServerLogger
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