[−][src]Struct webrtc_sdp::SdpSession
Fields
version: u64
origin: SdpOrigin
session: Option<String>
connection: Option<SdpConnection>
bandwidth: Vec<SdpBandwidth>
timing: Option<SdpTiming>
attribute: Vec<SdpAttribute>
media: Vec<SdpMedia>
warnings: Vec<SdpParserError>
Methods
impl SdpSession
[src]
pub fn new(version: u64, origin: SdpOrigin, session: String) -> SdpSession
[src]
pub fn get_version(&self) -> u64
[src]
pub fn get_origin(&self) -> &SdpOrigin
[src]
pub fn get_session(&self) -> &Option<String>
[src]
pub fn get_session_text(&self) -> &str
[src]
pub fn get_connection(&self) -> &Option<SdpConnection>
[src]
pub fn set_connection(&mut self, c: SdpConnection)
[src]
pub fn add_bandwidth(&mut self, b: SdpBandwidth)
[src]
pub fn set_timing(&mut self, t: SdpTiming)
[src]
pub fn add_attribute(
&mut self,
a: SdpAttribute
) -> Result<(), SdpParserInternalError>
[src]
&mut self,
a: SdpAttribute
) -> Result<(), SdpParserInternalError>
pub fn extend_media(&mut self, v: Vec<SdpMedia>)
[src]
pub fn parse_session_vector(
&mut self,
lines: &mut Vec<SdpLine>
) -> Result<(), SdpParserError>
[src]
&mut self,
lines: &mut Vec<SdpLine>
) -> Result<(), SdpParserError>
pub fn get_attribute(&self, t: SdpAttributeType) -> Option<&SdpAttribute>
[src]
pub fn add_media(
&mut self,
media_type: SdpMediaValue,
direction: SdpAttribute,
port: u32,
protocol: SdpProtocolValue,
addr: ExplicitlyTypedAddress
) -> Result<(), SdpParserInternalError>
[src]
&mut self,
media_type: SdpMediaValue,
direction: SdpAttribute,
port: u32,
protocol: SdpProtocolValue,
addr: ExplicitlyTypedAddress
) -> Result<(), SdpParserInternalError>
Trait Implementations
impl AnonymizingClone for SdpSession
[src]
fn masked_clone(&self, anon: &mut StatefulSdpAnonymizer) -> Self
[src]
impl Clone for SdpSession
[src]
fn clone(&self) -> SdpSession
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Display for SdpSession
[src]
Auto Trait Implementations
impl RefUnwindSafe for SdpSession
impl Send for SdpSession
impl Sync for SdpSession
impl Unpin for SdpSession
impl UnwindSafe for SdpSession
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,