pub trait WebRtcSignaling: Send + Sync {
// Required method
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 OpenOk,
peer: [u8; 32],
send: BoxSend,
recv: BoxRecv,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Carrier-owned WebRTC signaling for webrtc.signal/1.
Prefer the shared crate::webrtc::WebRtcAnswerer (parameterised by
crate::webrtc::WebRtcCarrier) unless the carrier needs a bespoke path.
When None is passed to crate::serve, the method is refused with
unsupported_transport.
Required Methods§
Sourcefn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 OpenOk,
peer: [u8; 32],
send: BoxSend,
recv: BoxRecv,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
identity: &'life1 OpenOk,
peer: [u8; 32],
send: BoxSend,
recv: BoxRecv,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle one webrtc.signal/1 stream on an opened session.
send/recv already peeked the method prefix; the body (SDP / ICE
frames) starts at the next byte. Own the halves until the signaling
session ends.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".