Struct ruma_common::events::call::SessionDescription
source · pub struct SessionDescription {
pub session_type: SessionDescriptionType,
pub sdp: String,
}Available on crate feature
events only.Expand description
A VoIP session description.
This is the same type as WebRTC’s RTCSessionDescriptionInit.
Fields§
§session_type: SessionDescriptionTypeThe type of session description.
sdp: StringThe SDP text of the session description.
With the unstable-msc2746 feature, this field is unused if the type is rollback and
defaults to an empty string.
Implementations§
source§impl SessionDescription
impl SessionDescription
sourcepub fn new(session_type: SessionDescriptionType, sdp: String) -> Self
pub fn new(session_type: SessionDescriptionType, sdp: String) -> Self
Creates a new SessionDescription with the given session type and SDP text.
Trait Implementations§
source§impl Clone for SessionDescription
impl Clone for SessionDescription
source§fn clone(&self) -> SessionDescription
fn clone(&self) -> SessionDescription
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 SessionDescription
impl Debug for SessionDescription
source§impl<'de> Deserialize<'de> for SessionDescription
impl<'de> Deserialize<'de> for SessionDescription
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