Encapsulate relay::client::Connection into an Newtype type that only exposes AsyncRead
and AsyncWrite
#3255
Labels
difficulty:easy
getting-started
Issues that can be tackled if you don't know the internals of libp2p very well
Motivation
As per #3238/files#r1050261660
Connection
is a public enum variant with struct variants, any change to it becomes a subsequent breaking change.Desired changes
Encapsulate that one into an Newtype that only exposes
AsyncRead
andAsyncWrite
as its interface:ConnectionState
& make it privateConnection
as Newtype that encapsulatesConnectionState
.this depends on #3238 as it renames
RelayedConnection
toConnection
and is itself a breaking change. Probably should also wait on the discussion started on #3221 (comment).CC @thomaseizinger
Are you planning to do it yourself in a pull request?
Yes if required.
The text was updated successfully, but these errors were encountered: