pub struct PriorityMappings {
pub error: Priority,
pub warn: Priority,
pub info: Priority,
pub debug: Priority,
pub trace: Priority,
}Expand description
Mappings from tracing Levels to journald priorities.
Fields§
§error: PriorityPriority mapped to the ERROR level
warn: PriorityPriority mapped to the WARN level
info: PriorityPriority mapped to the INFO level
debug: PriorityPriority mapped to the DEBUG level
trace: PriorityPriority mapped to the TRACE level
Implementations§
Source§impl PriorityMappings
impl PriorityMappings
Sourcepub fn new() -> PriorityMappings
pub fn new() -> PriorityMappings
Returns the default priority mappings:
Trait Implementations§
Source§impl Clone for PriorityMappings
impl Clone for PriorityMappings
Source§fn clone(&self) -> PriorityMappings
fn clone(&self) -> PriorityMappings
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 PriorityMappings
impl Debug for PriorityMappings
Auto Trait Implementations§
impl Freeze for PriorityMappings
impl RefUnwindSafe for PriorityMappings
impl Send for PriorityMappings
impl Sync for PriorityMappings
impl Unpin for PriorityMappings
impl UnwindSafe for PriorityMappings
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