Struct medea_jason::platform::ice_candidate::IceCandidate
source · pub struct IceCandidate(_);
Expand description
Wrapper around a DartHandle
representing an ICE candidate of a
RTCPeerConnection.
Implementations§
source§impl IceCandidate
impl IceCandidate
sourcepub fn new(
candidate: &str,
sdp_m_line_index: Option<u16>,
sdp_mid: &Option<String>
) -> Self
pub fn new( candidate: &str, sdp_m_line_index: Option<u16>, sdp_mid: &Option<String> ) -> Self
Returns a new IceCandidate
with the provided parameters.
sourcepub fn handle(&self) -> Dart_Handle
pub fn handle(&self) -> Dart_Handle
Returns the underlying Dart_Handle
of this IceCandidate
.
sourcepub fn candidate(&self) -> String
pub fn candidate(&self) -> String
Returns candidate of this IceCandidate
.
sourcepub fn sdp_m_line_index(&self) -> Option<u16>
pub fn sdp_m_line_index(&self) -> Option<u16>
Returns SDP M line index of this IceCandidate
.
sourcepub fn sdp_mid(&self) -> Option<String>
pub fn sdp_mid(&self) -> Option<String>
Returns SDP MID of this IceCandidate
.
Trait Implementations§
source§impl Debug for IceCandidate
impl Debug for IceCandidate
source§impl From<DartHandle> for IceCandidate
impl From<DartHandle> for IceCandidate
source§fn from(original: DartHandle) -> IceCandidate
fn from(original: DartHandle) -> IceCandidate
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for IceCandidate
impl !Send for IceCandidate
impl !Sync for IceCandidate
impl Unpin for IceCandidate
impl UnwindSafe for IceCandidate
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