Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
/ rw-stream-sink Public archive

Adaptator between Stream/Sink and AsyncRead/AsyncWrite

License

Notifications You must be signed in to change notification settings

paritytech/rw-stream-sink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This crate provides the RwStreamSink type. It wraps around a Stream and Sink that produces and accepts byte arrays, and implements the AsyncRead and AsyncWrite traits.

Each call to AsyncWrite::poll_write will send one packet to the sink. Calls to AsyncRead::poll_read will read from the stream's incoming packets.

About

Adaptator between Stream/Sink and AsyncRead/AsyncWrite

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages