pub struct CustomPriorityMapper<M: Message> { /* private fields */ }Expand description
Custom priority mapper that can override specific event priorities
Implementations§
Trait Implementations§
Source§impl<M: Message> SafePriorityMapper<M> for CustomPriorityMapper<M>
impl<M: Message> SafePriorityMapper<M> for CustomPriorityMapper<M>
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<M> Freeze for CustomPriorityMapper<M>
impl<M> !RefUnwindSafe for CustomPriorityMapper<M>
impl<M> Send for CustomPriorityMapper<M>
impl<M> Sync for CustomPriorityMapper<M>
impl<M> Unpin for CustomPriorityMapper<M>
impl<M> !UnwindSafe for CustomPriorityMapper<M>
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