[−][src]Struct datachannel::RtcPeerConnection
Implementations
impl<P, D> RtcPeerConnection<P, D> where
P: PeerConnection + Send,
P::DC: DataChannel + Send,
D: MakeDataChannel<P::DC> + Send,
[src]
P: PeerConnection + Send,
P::DC: DataChannel + Send,
D: MakeDataChannel<P::DC> + Send,
pub fn new(config: &Config, pc: P, dc: D) -> Result<Box<Self>, Error>
[src]
pub fn create_data_channel<C>(
&mut self,
label: &str,
dc: C
) -> Result<Box<RtcDataChannel<C>>, Error> where
C: DataChannel + Send,
[src]
&mut self,
label: &str,
dc: C
) -> Result<Box<RtcDataChannel<C>>, Error> where
C: DataChannel + Send,
pub fn create_data_channel_ext<'a, C, S>(
&mut self,
label: &str,
protocol: S,
reliability: &Reliability,
dc: C
) -> Result<Box<RtcDataChannel<C>>, Error> where
C: DataChannel + Send,
S: Into<Option<&'a str>>,
[src]
&mut self,
label: &str,
protocol: S,
reliability: &Reliability,
dc: C
) -> Result<Box<RtcDataChannel<C>>, Error> where
C: DataChannel + Send,
S: Into<Option<&'a str>>,
pub fn set_remote_description(
&mut self,
sess_desc: &SessionDescription
) -> Result<(), Error>
[src]
&mut self,
sess_desc: &SessionDescription
) -> Result<(), Error>
pub fn add_remote_candidate(&mut self, cand: &IceCandidate) -> Result<(), Error>
[src]
pub fn local_address(&self) -> String
[src]
pub fn remote_address(&self) -> String
[src]
Trait Implementations
impl<P, D> Drop for RtcPeerConnection<P, D>
[src]
Auto Trait Implementations
impl<P, D> !RefUnwindSafe for RtcPeerConnection<P, D>
impl<P, D> Send for RtcPeerConnection<P, D> where
D: Send,
P: Send,
D: Send,
P: Send,
impl<P, D> Sync for RtcPeerConnection<P, D> where
D: Sync,
P: Sync,
D: Sync,
P: Sync,
impl<P, D> Unpin for RtcPeerConnection<P, D> where
D: Unpin,
P: Unpin,
D: Unpin,
P: Unpin,
impl<P, D> UnwindSafe for RtcPeerConnection<P, D> where
D: UnwindSafe,
P: UnwindSafe,
D: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,