pub struct AeronEndOfLifeResourceFreeClosure<F: FnMut() -> bool> { /* 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
Trait Implementations§
source§impl<F: FnMut() -> bool> AeronEndOfLifeResourceFreeCallback for AeronEndOfLifeResourceFreeClosure<F>
impl<F: FnMut() -> bool> AeronEndOfLifeResourceFreeCallback for AeronEndOfLifeResourceFreeClosure<F>
fn handle_aeron_end_of_life_resource_free(&mut self) -> bool
Auto Trait Implementations§
impl<F> Freeze for AeronEndOfLifeResourceFreeClosure<F>where
F: Freeze,
impl<F> RefUnwindSafe for AeronEndOfLifeResourceFreeClosure<F>where
F: RefUnwindSafe,
impl<F> Send for AeronEndOfLifeResourceFreeClosure<F>where
F: Send,
impl<F> Sync for AeronEndOfLifeResourceFreeClosure<F>where
F: Sync,
impl<F> Unpin for AeronEndOfLifeResourceFreeClosure<F>where
F: Unpin,
impl<F> UnwindSafe for AeronEndOfLifeResourceFreeClosure<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