pub struct PriorityMappings {
pub error: Priority,
pub warn: Priority,
pub info: Priority,
pub debug: Priority,
pub trace: Priority,
}
Expand description
Mappings from tracing Level
s to journald priorities.
Fields§
§error: Priority
Priority mapped to the ERROR
level
warn: Priority
Priority mapped to the WARN
level
info: Priority
Priority mapped to the INFO
level
debug: Priority
Priority mapped to the DEBUG
level
trace: Priority
Priority 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 copy 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