use std::io::Error; use bytes::BytesMut; use hbb_common::ResultType; pub struct WebRTCStream { // mock struct } impl Clone for WebRTCStream { fn clone(&self) -> Self { WebRTCStream { } } } impl WebRTCStream { pub async fn new( _: &str, _: u64, ) -> ResultType { Ok(Self {}) } #[inline] pub async fn get_local_endpoint(&self) -> ResultType { Ok(String::new()) } #[inline] pub async fn set_remote_endpoint(&self, _: &str) -> ResultType<()> { Ok(()) } #[inline] pub async fn send_bytes(&mut self, _: bytes::Bytes) -> ResultType<()> { Ok(()) } #[inline] pub async fn next(&mut self) -> Option> { None } }