pub struct FnEventSink<F>(pub F);Expand description
Closure adapter for TransactionEventSink.
Tuple Fields§
§0: FTrait Implementations§
Source§impl<F> TransactionEventSink for FnEventSink<F>
impl<F> TransactionEventSink for FnEventSink<F>
Source§fn deliver(&self, event: TransactionEvent) -> EventDelivery
fn deliver(&self, event: TransactionEvent) -> EventDelivery
Deliver one ordered event. Must return promptly with a future.
Auto Trait Implementations§
impl<F> Freeze for FnEventSink<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnEventSink<F>where
F: RefUnwindSafe,
impl<F> Send for FnEventSink<F>where
F: Send,
impl<F> Sync for FnEventSink<F>where
F: Sync,
impl<F> Unpin for FnEventSink<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnEventSink<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnEventSink<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