Enum webrtc::peer_connection::sdp::sdp_type::RTCSdpType
source · pub enum RTCSdpType {
Unspecified,
Offer,
Pranswer,
Answer,
Rollback,
}
Expand description
SDPType describes the type of an SessionDescription.
Variants§
Unspecified
Offer
indicates that a description MUST be treated as an SDP offer.
Pranswer
indicates that a description MUST be treated as an SDP answer, but not a final answer. A description used as an SDP pranswer may be applied as a response to an SDP offer, or an update to a previously sent SDP pranswer.
Answer
indicates that a description MUST be treated as an SDP final answer, and the offer-answer exchange MUST be considered complete. A description used as an SDP answer may be applied as a response to an SDP offer or as an update to a previously sent SDP pranswer.
Rollback
indicates that a description MUST be treated as canceling the current SDP negotiation and moving the SDP offer and answer back to what it was in the previous stable state. Note the local or remote SDP descriptions in the previous stable state could be null if there has not yet been a successful offer-answer negotiation.
Trait Implementations§
source§impl Clone for RTCSdpType
impl Clone for RTCSdpType
source§fn clone(&self) -> RTCSdpType
fn clone(&self) -> RTCSdpType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RTCSdpType
impl Debug for RTCSdpType
source§impl Default for RTCSdpType
impl Default for RTCSdpType
source§fn default() -> RTCSdpType
fn default() -> RTCSdpType
source§impl<'de> Deserialize<'de> for RTCSdpType
impl<'de> Deserialize<'de> for RTCSdpType
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>,
source§impl Display for RTCSdpType
impl Display for RTCSdpType
source§impl From<&str> for RTCSdpType
impl From<&str> for RTCSdpType
creates an SDPType from a string
source§impl PartialEq<RTCSdpType> for RTCSdpType
impl PartialEq<RTCSdpType> for RTCSdpType
source§fn eq(&self, other: &RTCSdpType) -> bool
fn eq(&self, other: &RTCSdpType) -> bool
self
and other
values to be equal, and is used
by ==
.