pub struct MockWebRtcEngine { /* private fields */ }Implementations§
Source§impl MockWebRtcEngine
impl MockWebRtcEngine
pub fn new() -> Self
pub fn set_offer(&self, sdp: impl Into<String>)
pub fn set_answer(&self, sdp: impl Into<String>)
pub fn emit_candidate(&self, candidate: &str) -> Result<(), EnigmaRtcError>
pub fn last_applied_answer(&self) -> Option<String>
pub fn candidates(&self) -> Vec<String>
pub fn microphone_enabled(&self) -> bool
pub fn camera_enabled(&self) -> bool
Trait Implementations§
Source§impl RtcEngine for MockWebRtcEngine
impl RtcEngine for MockWebRtcEngine
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 MockWebRtcEngine
impl RefUnwindSafe for MockWebRtcEngine
impl Send for MockWebRtcEngine
impl Sync for MockWebRtcEngine
impl Unpin for MockWebRtcEngine
impl UnwindSafe for MockWebRtcEngine
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,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more