pub struct LoggingAspect { /* private fields */ }Expand description
Implementations§
Source§impl LoggingAspect
impl LoggingAspect
Sourcepub fn with_level(self, level: LogLevel) -> Self
pub fn with_level(self, level: LogLevel) -> Self
Set the log level.
Sourcepub fn log_result(self) -> Self
pub fn log_result(self) -> Self
Enable logging of function results (disabled by default).
Trait Implementations§
Source§impl Aspect for LoggingAspect
impl Aspect for LoggingAspect
Source§fn after(&self, ctx: &JoinPoint, result: &dyn Any)
fn after(&self, ctx: &JoinPoint, result: &dyn Any)
Advice executed after the target function completes successfully. Read more
Source§fn after_error(&self, ctx: &JoinPoint, error: &AspectError)
fn after_error(&self, ctx: &JoinPoint, error: &AspectError)
Advice executed when the target function encounters an error. Read more
Source§fn around(
&self,
pjp: ProceedingJoinPoint<'_>,
) -> Result<Box<dyn Any>, AspectError>
fn around( &self, pjp: ProceedingJoinPoint<'_>, ) -> Result<Box<dyn Any>, AspectError>
Advice that wraps the entire target function execution. Read more
Source§impl Clone for LoggingAspect
impl Clone for LoggingAspect
Source§fn clone(&self) -> LoggingAspect
fn clone(&self) -> LoggingAspect
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 moreAuto Trait Implementations§
impl Freeze for LoggingAspect
impl RefUnwindSafe for LoggingAspect
impl Send for LoggingAspect
impl Sync for LoggingAspect
impl Unpin for LoggingAspect
impl UnsafeUnpin for LoggingAspect
impl UnwindSafe for LoggingAspect
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