Open museun opened 4 years ago
This removes the Connector trait and favors independent crates. This'll allow more flexible versioning (and changes/additions) for external deps.
Connector
This changes the Encodable trait to use a &mut dyn Write so the trait implementations can be object safe.
Encodable
&mut dyn Write
This removes the AsyncRunner and provides a bunch of composable functions instead.
AsyncRunner
The MpscWriter is now usable in both sync and async contexts.
MpscWriter
Add Sink/Stream wrappers for Encoder/Decoder
Sink
Stream
Encoder
Decoder
Add a Handshake type that allows a connection flow to be started/wait for it to be ready.
Handshake
Remove most of the stuff from the root, re-export common types into distinct submodules:
sync
asynchronous
stream
Add an idle_detection_loop that does the 'complex' part of the old runner -- but is reusable and is opt-in
idle_detection_loop
What needs to be done:
This removes the
Connector
trait and favors independent crates. This'll allow more flexible versioning (and changes/additions) for external deps.This changes the
Encodable
trait to use a&mut dyn Write
so the trait implementations can be object safe.This removes the
AsyncRunner
and provides a bunch of composable functions instead.The
MpscWriter
is now usable in both sync and async contexts.Add
Sink
/Stream
wrappers forEncoder
/Decoder
Add a
Handshake
type that allows a connection flow to be started/wait for it to be ready.Remove most of the stuff from the root, re-export common types into distinct submodules:
sync
asynchronous
stream
Add an
idle_detection_loop
that does the 'complex' part of the old runner -- but is reusable and is opt-inWhat needs to be done: