[][src]Struct webrtc_unreliable::SessionEndpoint

pub struct SessionEndpoint { /* fields omitted */ }

Implementations

impl SessionEndpoint[src]

pub async fn session_request<I, E, S, '_>(
    &'_ mut self,
    sdp_descriptor: S
) -> Result<String, SessionError> where
    I: AsRef<[u8]>,
    E: Error + Send + Sync + 'static,
    S: Stream<Item = Result<I, E>>, 
[src]

Receives an incoming SDP descriptor of an RTCSessionDescription from a browser, informs the corresponding Server of the new WebRTC session, and returns a JSON object containing objects which can construct an RTCSessionDescription and an RTCIceCandidate in a browser.

The returned JSON object contains a digest of the x509 certificate the server will use for DTLS, and the browser will ensure that this digest matches before starting a WebRTC connection.

pub async fn http_session_request<I, E, S, '_>(
    &'_ mut self,
    sdp_descriptor: S
) -> Result<Response<String>, SessionError> where
    I: AsRef<[u8]>,
    E: Error + Send + Sync + 'static,
    S: Stream<Item = Result<I, E>>, 
[src]

Convenience method which returns an http::Response rather than a JSON string, with the correct format headers.

Trait Implementations

impl Clone for SessionEndpoint[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,