pub enum RtcSdpType {
Unspecified = 0,
Offer = 1,
Pranswer = 2,
Answer = 3,
Rollback = 4,
}Expand description
SDPType describes the type of an SessionDescription.
Variants§
Unspecified = 0
Unspecified indicates that the type is unspecified.
Offer = 1
indicates that a description MUST be treated as an SDP offer.
Pranswer = 2
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 = 3
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 = 4
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 From<RTCSdpType> for RtcSdpType
impl From<RTCSdpType> for RtcSdpType
source§fn from(sdp_type: RTCSdpType) -> Self
fn from(sdp_type: RTCSdpType) -> Self
source§impl From<RtcSdpType> for RTCSdpType
impl From<RtcSdpType> for RTCSdpType
source§fn from(sdp_type: RtcSdpType) -> Self
fn from(sdp_type: RtcSdpType) -> Self
source§impl JsonSchema for RtcSdpType
impl JsonSchema for RtcSdpType
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq for RtcSdpType
impl PartialEq 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 ==.