pub struct BlockingCallbackSink<F> { /* private fields */ }Expand description
A blocking/sync variant that accepts a FnMut closure.
This spawns the blocking work onto tokio::task::spawn_blocking so it
doesn’t starve the async runtime.
Implementations§
Trait Implementations§
Source§impl<F> EventSink for BlockingCallbackSink<F>
impl<F> EventSink for BlockingCallbackSink<F>
Auto Trait Implementations§
impl<F> Freeze for BlockingCallbackSink<F>
impl<F> RefUnwindSafe for BlockingCallbackSink<F>
impl<F> Send for BlockingCallbackSink<F>
impl<F> Sync for BlockingCallbackSink<F>
impl<F> Unpin for BlockingCallbackSink<F>
impl<F> UnsafeUnpin for BlockingCallbackSink<F>
impl<F> UnwindSafe for BlockingCallbackSink<F>
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