webrtc: Require Send+Sync for signaller implementations

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1432>
This commit is contained in:
Sebastian Dröge 2024-01-18 10:01:01 +02:00
parent 80b58f3b45
commit 1af18f3028

View file

@ -474,7 +474,7 @@ where
}
}
pub trait SignallableImpl: object::ObjectImpl + 'static {
pub trait SignallableImpl: object::ObjectImpl + Send + Sync + 'static {
fn start(&self) {}
fn stop(&self) {}
fn send_sdp(&self, _session_id: &str, _sdp: &gst_webrtc::WebRTCSessionDescription) {}