Skip to content

0.41.0

Choose a tag to compare

@github-actions github-actions released this 18 Feb 16:30
· 5 commits to main since this release
424de68

Release notes

Enhancements

  • Added three new methods to the Live client for more control over when I/O occurs. Together
    they provide an alternative to next_record():
    • fill_buf(): reads available data from the socket into the internal buffer without
      processing records
    • try_next_record(): returns the next record from the internal buffer without
      performing any I/O. Returns Ok(None) if no complete records are available in the buffer.
    • is_closed(): returns whether the connection has been closed
  • Added SlowReaderBehavior enum and slow_reader_behavior() setter on the live client builder to configure
    gateway behavior when client falls behind
  • Added slow_reader_behavior() getter to LiveClient
  • Upgraded DBN version to 0.49.0:
    • Added encode_records to EncodeRecord and AsyncEncodeRecord traits for more
      efficient batch encoding
    • Added encode_record_refs to EncodeRecordRef and AsyncEncodeRecordRef traits with
      more efficient vectored I/O implementation for DBN

Breaking changes

  • From DBN:
    • Moved encode_records method from the EncodeDbn trait to EncodeRecord