pub struct CustomKeyExtractor<F> { /* private fields */ }Expand description
Custom key extractor function
Implementations§
Source§impl<F> CustomKeyExtractor<F>
impl<F> CustomKeyExtractor<F>
Trait Implementations§
Source§impl<F: Clone> Clone for CustomKeyExtractor<F>
impl<F: Clone> Clone for CustomKeyExtractor<F>
Source§fn clone(&self) -> CustomKeyExtractor<F>
fn clone(&self) -> CustomKeyExtractor<F>
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<T, F> KeyExtractor<T> for CustomKeyExtractor<F>
impl<T, F> KeyExtractor<T> for CustomKeyExtractor<F>
fn extract_key(&self, event: &T) -> String
Auto Trait Implementations§
impl<F> Freeze for CustomKeyExtractor<F>where
F: Freeze,
impl<F> RefUnwindSafe for CustomKeyExtractor<F>where
F: RefUnwindSafe,
impl<F> Send for CustomKeyExtractor<F>where
F: Send,
impl<F> Sync for CustomKeyExtractor<F>where
F: Sync,
impl<F> Unpin for CustomKeyExtractor<F>where
F: Unpin,
impl<F> UnwindSafe for CustomKeyExtractor<F>where
F: UnwindSafe,
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