pub struct WebRTCTransport { /* private fields */ }Expand description
WebRTC transport that mimics video conferencing traffic
Implementations§
Trait Implementations§
Source§impl Default for WebRTCTransport
impl Default for WebRTCTransport
Source§impl Transport for WebRTCTransport
impl Transport for WebRTCTransport
Source§fn protocol(&self) -> CoverProtocol
fn protocol(&self) -> CoverProtocol
Get the cover protocol being mimicked
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
packet: Packet,
_peer: &'life1 PeerInfo,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
packet: Packet,
_peer: &'life1 PeerInfo,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a packet to a peer
Source§fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Packet>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Packet>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Receive a packet (blocks until one is available)
Source§fn stats(&self) -> TransportStats
fn stats(&self) -> TransportStats
Get transport statistics
Source§fn start_background_traffic<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start_background_traffic<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start background traffic generation (dummy packets, etc.)
Auto Trait Implementations§
impl Freeze for WebRTCTransport
impl RefUnwindSafe for WebRTCTransport
impl Send for WebRTCTransport
impl Sync for WebRTCTransport
impl Unpin for WebRTCTransport
impl UnsafeUnpin for WebRTCTransport
impl UnwindSafe for WebRTCTransport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more