Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some extra methods to be compatible with tokio_util::codec #42

Merged
merged 1 commit into from
Apr 29, 2020

Conversation

katyo
Copy link
Contributor

@katyo katyo commented Apr 28, 2020

  • Added methods for accessing to codec:
    • Framed::codec
    • Framed::codec_mut
    • FramedRead::decoder
    • FramedRead::decoder_mut
    • FramedWrite::encoder
    • FramedWrite::encoder_mut
  • Added methods for accessing to read buffer:
    • Framed::read_buffer
    • FramedRead::read_buffer
  • Added methods for releasing stream only:
    • Framed::into_inner
    • FramedRead::into_inner
    • FramedWrite::into_inner

* Added methods for accessing to codec:
  - Framed::codec
  - Framed::codec_mut
  - FramedRead::decoder
  - FramedRead::decoder_mut
  - FramedWrite::encoder
  - FramedWrite::encoder_mut
* Added methods for accessing to read buffer:
  - Framed::read_buffer
  - FramedRead::read_buffer
* Added methods for releasing stream only:
  - Framed::into_inner
  - FramedRead::into_inner
  - FramedWrite::into_inner
@matthunz
Copy link
Owner

This looks good thanks for adding!

@matthunz matthunz merged commit 20da3a7 into matthunz:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants