pub struct AeronNewSubscriptionClosure<F: FnMut(AeronAsyncAddSubscription, &'static str, i32, i64)> { /* private fields */ }
Expand description
Utility class designed to simplify the creation of handlers by allowing the use of closures. Note due to lifetime issues with FnMut, all arguments will be owned i.e. performs allocation for strings This is not the case if you use the trait instead of closure
(note you must copy any arguments that you use afterwards even those with static lifetimes)
Trait Implementations§
Source§impl<F: FnMut(AeronAsyncAddSubscription, &'static str, i32, i64)> AeronNewSubscriptionCallback for AeronNewSubscriptionClosure<F>
impl<F: FnMut(AeronAsyncAddSubscription, &'static str, i32, i64)> AeronNewSubscriptionCallback for AeronNewSubscriptionClosure<F>
fn handle_aeron_on_new_subscription( &mut self, async_: AeronAsyncAddSubscription, channel: &'static str, stream_id: i32, correlation_id: i64, )
Auto Trait Implementations§
impl<F> Freeze for AeronNewSubscriptionClosure<F>where
F: Freeze,
impl<F> RefUnwindSafe for AeronNewSubscriptionClosure<F>where
F: RefUnwindSafe,
impl<F> Send for AeronNewSubscriptionClosure<F>where
F: Send,
impl<F> Sync for AeronNewSubscriptionClosure<F>where
F: Sync,
impl<F> Unpin for AeronNewSubscriptionClosure<F>where
F: Unpin,
impl<F> UnwindSafe for AeronNewSubscriptionClosure<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