pub type aeron_controlled_fragment_handler_t = Option<unsafe extern "C" fn(clientd: *mut c_void, buffer: *const u8, length: usize, header: *mut aeron_header_t) -> aeron_controlled_fragment_handler_action_t>;
Expand description

Callback for handling fragments of data being read from a log.

Handler for reading data that is coming from a log buffer. The frame will either contain a whole message or a fragment of a message to be reassembled. Messages are fragmented if greater than the frame for MTU in length.

@param clientd passed to the controlled poll function. @param buffer containing the data. @param length of the data in bytes. @param header representing the meta data for the data. @return The action to be taken with regard to the stream position after the callback.

Aliased Type§

enum aeron_controlled_fragment_handler_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *const u8, _: usize, _: *mut aeron_header_stct) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *const u8, _: usize, _: *mut aeron_header_stct) -> u32)

Some value of type T.