pub struct RTCSessionDescription {
pub sdp_type: RTCSdpType,
pub sdp: String,
/* private fields */
}
Expand description
Fields§
§sdp_type: RTCSdpType
§sdp: String
Implementations§
Source§impl 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§
Source§impl Clone for RTCSessionDescription
impl Clone for RTCSessionDescription
Source§fn clone(&self) -> RTCSessionDescription
fn clone(&self) -> RTCSessionDescription
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RTCSessionDescription
impl Debug for RTCSessionDescription
Source§impl Default for RTCSessionDescription
impl Default for RTCSessionDescription
Source§fn default() -> RTCSessionDescription
fn default() -> RTCSessionDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RTCSessionDescription
impl<'de> Deserialize<'de> for RTCSessionDescription
Source§fn 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
Auto Trait Implementations§
impl Freeze for RTCSessionDescription
impl RefUnwindSafe for RTCSessionDescription
impl Send for RTCSessionDescription
impl Sync for RTCSessionDescription
impl Unpin for RTCSessionDescription
impl UnwindSafe for RTCSessionDescription
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> 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