pub struct DefaultPriorityMapper;Expand description
Default priority mapper implementation
Trait Implementations§
Source§impl<M: Message> SafePriorityMapper<M> for DefaultPriorityMapper
impl<M: Message> SafePriorityMapper<M> for DefaultPriorityMapper
Source§fn map_priority(&self, event: &Event<M>) -> Priority
fn map_priority(&self, event: &Event<M>) -> Priority
Map an event to its priority
Auto Trait Implementations§
impl Freeze for DefaultPriorityMapper
impl RefUnwindSafe for DefaultPriorityMapper
impl Send for DefaultPriorityMapper
impl Sync for DefaultPriorityMapper
impl Unpin for DefaultPriorityMapper
impl UnwindSafe for DefaultPriorityMapper
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
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter