pub trait AeronNewPublicationCallback {
// Required method
fn handle_aeron_on_new_publication(
&mut self,
channel: &str,
stream_id: i32,
session_id: i32,
correlation_id: i64,
);
}Expand description
Function called by aeron_client_t to deliver notification that the media driver has added an aeron_publication_t or aeron_exclusive_publication_t successfully.
Implementations should do the minimum work for passing off state to another thread for later processing.
@param clientd to be returned in the call @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
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
Required Methods§
fn handle_aeron_on_new_publication( &mut self, channel: &str, stream_id: i32, session_id: i32, correlation_id: i64, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AeronNewPublicationCallback for AeronNewPublicationLogger
impl AeronNewPublicationCallback for AeronNewPublicationSlot
impl AeronNewPublicationCallback for NoHandler
impl<F: FnMut(&str, i32, i32, i64)> AeronNewPublicationCallback for F
Any closure with the matching signature is a callback: methods that retain it
heap-allocate it into a Handler owned by the registering resource.
impl<T: AeronNewPublicationCallback> AeronNewPublicationCallback for Handler<T>
Pass an existing Handler clone anywhere a callback value is expected, e.g.
to share one callback instance across several registrations.