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: SessionDescriptionType
The type of session description.
sdp: String
The 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
sourceimpl 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
sourceimpl Clone for SessionDescription
impl Clone for SessionDescription
sourcefn clone(&self) -> SessionDescription
fn clone(&self) -> SessionDescription
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 moresourceimpl Debug for SessionDescription
impl Debug for SessionDescription
sourceimpl<'de> Deserialize<'de> for SessionDescription
impl<'de> Deserialize<'de> for SessionDescription
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 Serialize for SessionDescription
impl Serialize for SessionDescription
Auto Trait Implementations
impl RefUnwindSafe for SessionDescription
impl Send for SessionDescription
impl Sync for SessionDescription
impl Unpin for SessionDescription
impl UnwindSafe for SessionDescription
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