pub struct WebRtcEngine { /* private fields */ }Implementations§
Source§impl WebRtcEngine
impl WebRtcEngine
pub fn new(config: RtcConfig) -> Result<Self, EnigmaRtcError>
Trait Implementations§
Source§impl RtcEngine for WebRtcEngine
impl RtcEngine for WebRtcEngine
fn set_event_sender( &self, sender: UnboundedSender<RtcEvent>, ) -> Result<(), EnigmaRtcError>
fn create_offer(&self) -> Result<String, EnigmaRtcError>
fn create_answer(&self, offer_sdp: &str) -> Result<String, EnigmaRtcError>
fn apply_answer(&self, answer_sdp: &str) -> Result<(), EnigmaRtcError>
fn add_remote_candidate( &self, candidate_json: &str, ) -> Result<(), EnigmaRtcError>
fn set_microphone_enabled(&self, enabled: bool) -> Result<(), EnigmaRtcError>
fn set_camera_enabled(&self, enabled: bool) -> Result<(), EnigmaRtcError>
Auto Trait Implementations§
impl !Freeze for WebRtcEngine
impl !RefUnwindSafe for WebRtcEngine
impl !UnwindSafe for WebRtcEngine
impl Send for WebRtcEngine
impl Sync for WebRtcEngine
impl Unpin for WebRtcEngine
impl UnsafeUnpin for WebRtcEngine
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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