pub async fn read_events(
stream: &mut BinlogStream,
max_events: usize,
timeout: Duration,
) -> Result<Vec<Event>, ConnectorError>Expand description
Reads binlog events from the stream with a timeout.
Returns up to max_events events, or fewer if the timeout expires.
ยงErrors
Returns ConnectorError::ReadError if an I/O error occurs.