Struct datachannel_facade::Description
source · pub struct Description {
pub type_: SdpType,
pub sdp: String,
}
Expand description
The RTCSessionDescription interface describes one end of a connection—or potential connection—and how it’s configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.
The process of negotiating a connection between two peers involves exchanging RTCSessionDescription objects back and forth, with each description suggesting one combination of connection configuration options that the sender of the description supports. Once the two peers agree upon a configuration for the connection, negotiation is complete.
Fields§
§type_: SdpType
An enum describing the session description’s type.
sdp: String
A string containing the SDP describing the session.
Trait Implementations§
source§impl Clone for Description
impl Clone for Description
source§fn clone(&self) -> Description
fn clone(&self) -> Description
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 Description
impl Debug for Description
source§impl From<Description> for Description
impl From<Description> for Description
source§fn from(value: Description) -> Self
fn from(value: Description) -> Self
Converts to this type from the input type.
source§impl From<Description> for Description
impl From<Description> for Description
source§fn from(value: Description) -> Self
fn from(value: Description) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnwindSafe for Description
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more