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
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 more
sourceimpl 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for RTCSdpType
impl Display for RTCSdpType
sourceimpl From<&str> for RTCSdpType
impl From<&str> for RTCSdpType
creates an SDPType from a string
sourceimpl PartialEq<RTCSdpType> for RTCSdpType
impl PartialEq<RTCSdpType> for RTCSdpType
sourcefn eq(&self, other: &RTCSdpType) -> bool
fn eq(&self, other: &RTCSdpType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for RTCSdpType
impl Serialize for RTCSdpType
impl Copy for RTCSdpType
impl Eq for RTCSdpType
impl StructuralEq for RTCSdpType
impl StructuralPartialEq for RTCSdpType
Auto Trait Implementations
impl RefUnwindSafe for RTCSdpType
impl Send for RTCSdpType
impl Sync for RTCSdpType
impl Unpin for RTCSdpType
impl UnwindSafe for RTCSdpType
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