pub struct RTCSessionDescription {
pub sdp_type: RTCSdpType,
pub sdp: String,
/* private fields */
}
Expand description
SessionDescription is used to expose local and remote session descriptions.
Fields
sdp_type: RTCSdpType
sdp: String
Implementations
sourceimpl RTCSessionDescription
impl RTCSessionDescription
sourcepub fn answer(sdp: String) -> Result<RTCSessionDescription>
pub fn answer(sdp: String) -> Result<RTCSessionDescription>
Given SDP representing an answer, wrap it in an RTCSessionDescription that can be given to an RTCPeerConnection.
sourcepub fn offer(sdp: String) -> Result<RTCSessionDescription>
pub fn offer(sdp: String) -> Result<RTCSessionDescription>
Given SDP representing an offer, wrap it in an RTCSessionDescription that can be given to an RTCPeerConnection.
sourcepub fn pranswer(sdp: String) -> Result<RTCSessionDescription>
pub fn pranswer(sdp: String) -> Result<RTCSessionDescription>
Given SDP representing an answer, wrap it in an RTCSessionDescription
that can be given to an RTCPeerConnection. pranswer
is used when the
answer may not be final, or when updating a previously sent pranswer.
sourcepub fn unmarshal(&self) -> Result<SessionDescription>
pub fn unmarshal(&self) -> Result<SessionDescription>
Unmarshal is a helper to deserialize the sdp
Trait Implementations
sourceimpl Clone for RTCSessionDescription
impl Clone for RTCSessionDescription
sourcefn clone(&self) -> RTCSessionDescription
fn clone(&self) -> RTCSessionDescription
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RTCSessionDescription
impl Debug for RTCSessionDescription
sourceimpl Default for RTCSessionDescription
impl Default for RTCSessionDescription
sourcefn default() -> RTCSessionDescription
fn default() -> RTCSessionDescription
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RTCSessionDescription
impl<'de> Deserialize<'de> for RTCSessionDescription
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for RTCSessionDescription
impl Serialize for RTCSessionDescription
Auto Trait Implementations
impl RefUnwindSafe for RTCSessionDescription
impl Send for RTCSessionDescription
impl Sync for RTCSessionDescription
impl Unpin for RTCSessionDescription
impl UnwindSafe for RTCSessionDescription
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more