[][src]Struct webrtc_sdp::SdpSession

pub struct SdpSession {
    pub version: u64,
    pub origin: SdpOrigin,
    pub session: Option<String>,
    pub connection: Option<SdpConnection>,
    pub bandwidth: Vec<SdpBandwidth>,
    pub timing: Option<SdpTiming>,
    pub attribute: Vec<SdpAttribute>,
    pub media: Vec<SdpMedia>,
    pub warnings: Vec<SdpParserError>,
}

Fields

version: u64origin: SdpOriginsession: 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]

pub fn extend_media(&mut self, v: Vec<SdpMedia>)[src]

pub fn parse_session_vector(
    &mut self,
    lines: &mut Vec<SdpLine>
) -> Result<(), SdpParserError>
[src]

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]

Trait Implementations

impl AnonymizingClone for SdpSession[src]

impl Clone for SdpSession[src]

impl Display for SdpSession[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.