pub struct ByPredicate<F: Fn(&[Message]) -> bool + Send + Sync>(pub F);Expand description
Caller-supplied predicate completion.
Tuple Fields§
§0: FTrait Implementations§
Source§impl<F> CompletionCondition for ByPredicate<F>
impl<F> CompletionCondition for ByPredicate<F>
Auto Trait Implementations§
impl<F> Freeze for ByPredicate<F>where
F: Freeze,
impl<F> RefUnwindSafe for ByPredicate<F>where
F: RefUnwindSafe,
impl<F> Send for ByPredicate<F>
impl<F> Sync for ByPredicate<F>
impl<F> Unpin for ByPredicate<F>where
F: Unpin,
impl<F> UnsafeUnpin for ByPredicate<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for ByPredicate<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