-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add BoxedMuxed transport #459
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
Conversation
dcb2354 to
ebdcffb
Compare
ebdcffb to
d23afca
Compare
d23afca to
bf6592a
Compare
|
The test failure doesn't really make sense. |
| fn listen_on(&self, addr: Multiaddr) -> Result<(Listener<O>, Multiaddr), Multiaddr>; | ||
| fn dial(&self, addr: Multiaddr) -> Result<Dial<O>, Multiaddr>; | ||
| fn nat_traversal(&self, server: &Multiaddr, observed: &Multiaddr) -> Option<Multiaddr>; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this trait?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's the same as Transport, but since it doesn't have associated types and doesn't take by ownership, it can be put in a Box.
Based on top of #458
Adds an abstract implementation of
MuxedTransport, so that we can put a transport in a Box-like structure.