pub struct PeerConnection { /* private fields */ }
Expand description
Native JustWebRTC PeerConnection wrapper
Trait Implementations§
Source§impl Debug for PeerConnection
impl Debug for PeerConnection
Source§impl PeerConnectionExt for PeerConnection
impl PeerConnectionExt for PeerConnection
Source§async fn state_change(&self) -> PeerConnectionState
async fn state_change(&self) -> PeerConnectionState
Await change in the peer connection state
Source§async fn receive_channel(&self) -> Result<Channel, Error>
async fn receive_channel(&self) -> Result<Channel, Error>
Receive a data channel from the peer connection
Source§async fn collect_ice_candidates(&self) -> Result<Vec<ICECandidate>, Error>
async fn collect_ice_candidates(&self) -> Result<Vec<ICECandidate>, Error>
Collect all ICE candidates from the peer connection
Source§async fn get_local_description(&self) -> Option<SessionDescription>
async fn get_local_description(&self) -> Option<SessionDescription>
Get the local
SessionDescription
of the peer connectionSource§async fn add_ice_candidates(
&self,
remote_candidates: Vec<ICECandidate>,
) -> Result<(), Error>
async fn add_ice_candidates( &self, remote_candidates: Vec<ICECandidate>, ) -> Result<(), Error>
Add remote ICE candidates to the peer connection
Source§async fn set_remote_description(
&self,
remote_answer: SessionDescription,
) -> Result<(), Error>
async fn set_remote_description( &self, remote_answer: SessionDescription, ) -> Result<(), Error>
Pass a remote session description (answer) to the peer connection
Source§fn is_offerer(&self) -> bool
fn is_offerer(&self) -> bool
Returns true if the
PeerConnection
is the ‘local’ PeerConnection.
aka. the PeerConnection
that created the offer (offerer)Auto Trait Implementations§
impl Freeze for PeerConnection
impl !RefUnwindSafe for PeerConnection
impl Send for PeerConnection
impl Sync for PeerConnection
impl Unpin for PeerConnection
impl !UnwindSafe for PeerConnection
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> 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<'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