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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more