pub struct LogParams<'a> { /* private fields */ }Expand description
rclrs’s LogParams: the logger plus the modifiers one record carries.
ADOPT-BOUNDED: it borrows the Logger (LogParams<'a>) where rclrs’s
owns a logger name. Build one through ToLogParams.
Implementations§
Source§impl<'a> LogParams<'a>
impl<'a> LogParams<'a>
Sourcepub const fn new(logger: &'a Logger) -> Self
pub const fn new(logger: &'a Logger) -> Self
rclrs’s LogParams::new: logger, at Info, every record, no
throttle, no filter.
Sourcepub const fn get_logger_name(&self) -> &'static str
pub const fn get_logger_name(&self) -> &'static str
rclrs’s get_logger_name: the logger’s name.
Sourcepub const fn get_severity(&self) -> Severity
pub const fn get_severity(&self) -> Severity
rclrs’s get_severity.
Sourcepub const fn get_occurence(&self) -> LogOccurrence
pub const fn get_occurence(&self) -> LogOccurrence
rclrs’s get_occurence (rclrs’s spelling, kept).
Sourcepub const fn get_throttle(&self) -> Duration
pub const fn get_throttle(&self) -> Duration
rclrs’s get_throttle: Duration::ZERO for no throttle.
Sourcepub const fn get_throttle_clock(&self) -> ThrottleClock
pub const fn get_throttle_clock(&self) -> ThrottleClock
rclrs’s get_throttle_clock.
Sourcepub const fn get_user_filter(&self) -> bool
pub const fn get_user_filter(&self) -> bool
rclrs’s get_user_filter: the only_if condition.
Trait Implementations§
impl<'a> Copy for LogParams<'a>
Source§impl<'a> ToLogParams<'a> for LogParams<'a>
impl<'a> ToLogParams<'a> for LogParams<'a>
Source§fn to_log_params(self) -> LogParams<'a>
fn to_log_params(self) -> LogParams<'a>
Convert to params with this value’s settings.
Source§fn skip_first(self) -> LogParams<'a>
fn skip_first(self) -> LogParams<'a>
Emit every record of this call site except the first.
Source§fn occurs(self, occurs: LogOccurrence) -> LogParams<'a>
fn occurs(self, occurs: LogOccurrence) -> LogParams<'a>
Set the occurrence rule.
Auto Trait Implementations§
impl<'a> Freeze for LogParams<'a>
impl<'a> RefUnwindSafe for LogParams<'a>
impl<'a> Send for LogParams<'a>
impl<'a> Sync for LogParams<'a>
impl<'a> Unpin for LogParams<'a>
impl<'a> UnsafeUnpin for LogParams<'a>
impl<'a> UnwindSafe for LogParams<'a>
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