pub struct AeronPortManagerGetManagedPortFuncClosure<F: FnMut(SockaddrStorage, AeronUdpChannel, SockaddrStorage) -> c_int> { /* 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(SockaddrStorage, AeronUdpChannel, SockaddrStorage) -> c_int> AeronPortManagerGetManagedPortFuncCallback for AeronPortManagerGetManagedPortFuncClosure<F>
impl<F: FnMut(SockaddrStorage, AeronUdpChannel, SockaddrStorage) -> c_int> AeronPortManagerGetManagedPortFuncCallback for AeronPortManagerGetManagedPortFuncClosure<F>
fn handle_aeron_port_manager_get_managed_port_func( &mut self, bind_addr_out: SockaddrStorage, udp_channel: AeronUdpChannel, bind_addr: SockaddrStorage, ) -> c_int
source§impl<F: FnMut(SockaddrStorage, AeronUdpChannel, SockaddrStorage) -> c_int> From<F> for AeronPortManagerGetManagedPortFuncClosure<F>
impl<F: FnMut(SockaddrStorage, AeronUdpChannel, SockaddrStorage) -> c_int> From<F> for AeronPortManagerGetManagedPortFuncClosure<F>
Auto Trait Implementations§
impl<F> Freeze for AeronPortManagerGetManagedPortFuncClosure<F>where
F: Freeze,
impl<F> RefUnwindSafe for AeronPortManagerGetManagedPortFuncClosure<F>where
F: RefUnwindSafe,
impl<F> Send for AeronPortManagerGetManagedPortFuncClosure<F>where
F: Send,
impl<F> Sync for AeronPortManagerGetManagedPortFuncClosure<F>where
F: Sync,
impl<F> Unpin for AeronPortManagerGetManagedPortFuncClosure<F>where
F: Unpin,
impl<F> UnwindSafe for AeronPortManagerGetManagedPortFuncClosure<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