feat: Add WebRTC transport (#2622)

Hey 👋 This is a WebRTC transport implemented in accordance w/ the [spec](https://github.com/libp2p/specs/pull/412). It's based on the [webrtc-rs](https://github.com/webrtc-rs/webrtc) library.

Resolves: #1066.
This commit is contained in:
Anton Kaliaev
2022-11-17 09:17:31 +04:00
committed by GitHub
parent 43fdfe27ea
commit a714864885
26 changed files with 4220 additions and 3 deletions

View File

@ -65,3 +65,9 @@ impl<In, Out: Message + Default> Decoder for Codec<In, Out> {
#[derive(thiserror::Error, Debug)]
#[error("Failed to encode/decode message")]
pub struct Error(#[from] std::io::Error);
impl From<Error> for std::io::Error {
fn from(e: Error) -> Self {
e.0
}
}