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
sourceimpl Clone for RTCSdpType
impl Clone for RTCSdpType
sourcefn clone(&self) -> RTCSdpType
fn clone(&self) -> RTCSdpType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for RTCSdpType
impl Debug for RTCSdpType
sourceimpl Default for RTCSdpType
impl Default for RTCSdpType
sourceimpl<'de> Deserialize<'de> for RTCSdpType
impl<'de> Deserialize<'de> for RTCSdpType
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>,
sourceimpl Display for RTCSdpType
impl Display for RTCSdpType
sourceimpl From<&str> for RTCSdpType
impl From<&str> for RTCSdpType
creates an SDPType from a string