Enum servo_media_webrtc::thread::RtcThreadEvent
source · pub enum RtcThreadEvent {
ConfigureStun(String, BundlePolicy),
SetRemoteDescription(SessionDescription, Box<dyn FnOnce() + Send + 'static>),
SetLocalDescription(SessionDescription, Box<dyn FnOnce() + Send + 'static>),
AddIceCandidate(IceCandidate),
CreateOffer(Box<dyn FnOnce(SessionDescription) + Send + 'static>),
CreateAnswer(Box<dyn FnOnce(SessionDescription) + Send + 'static>),
AddStream(MediaStreamId),
CreateDataChannel(DataChannelInit, Sender<Option<DataChannelId>>),
CloseDataChannel(DataChannelId),
SendDataChannelMessage(DataChannelId, DataChannelMessage),
InternalEvent(InternalEvent),
Quit,
}
Variants§
ConfigureStun(String, BundlePolicy)
SetRemoteDescription(SessionDescription, Box<dyn FnOnce() + Send + 'static>)
SetLocalDescription(SessionDescription, Box<dyn FnOnce() + Send + 'static>)
AddIceCandidate(IceCandidate)
CreateOffer(Box<dyn FnOnce(SessionDescription) + Send + 'static>)
CreateAnswer(Box<dyn FnOnce(SessionDescription) + Send + 'static>)
AddStream(MediaStreamId)
CreateDataChannel(DataChannelInit, Sender<Option<DataChannelId>>)
CloseDataChannel(DataChannelId)
SendDataChannelMessage(DataChannelId, DataChannelMessage)
InternalEvent(InternalEvent)
Quit
Auto Trait Implementations§
impl Freeze for RtcThreadEvent
impl !RefUnwindSafe for RtcThreadEvent
impl Send for RtcThreadEvent
impl !Sync for RtcThreadEvent
impl Unpin for RtcThreadEvent
impl !UnwindSafe for RtcThreadEvent
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