[][src]Struct datachannel::RtcPeerConnection

pub struct RtcPeerConnection<P, D> { /* fields omitted */ }

Implementations

impl<P, D> RtcPeerConnection<P, D> where
    P: PeerConnection + Send,
    P::DC: DataChannel + Send,
    D: MakeDataChannel<P::DC> + Send
[src]

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]

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]

pub fn set_remote_description(
    &mut self,
    sess_desc: &SessionDescription
) -> Result<(), Error>
[src]

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

impl<P, D> Sync for RtcPeerConnection<P, D> where
    D: Sync,
    P: Sync

impl<P, D> Unpin for RtcPeerConnection<P, D> where
    D: Unpin,
    P: Unpin

impl<P, D> UnwindSafe for RtcPeerConnection<P, D> where
    D: UnwindSafe,
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.