[][src]Type Definition aeron_rs::context::OnNewPublication

type OnNewPublication = fn(channel: CString, stream_id: i32, session_id: i32, correlation_id: i64);

Function called by Aeron to deliver notification that the media driver has added a Publication successfully.

Implementations should do the minimum work for passing off state to another thread for later processing and should not make a reentrant call back into the Aeron instance.

@param channel of the Publication @param stream_id within the channel of the Publication @param session_id of the Publication @param correlation_id used by the Publication for adding. Aka the registration_id returned by Aeron::add_publication