[][src]Struct webrtc_sdp::media_type::SdpMedia

pub struct SdpMedia { /* fields omitted */ }

Methods

impl SdpMedia[src]

pub fn new(media: SdpMediaLine) -> SdpMedia[src]

pub fn get_type(&self) -> &SdpMediaValue[src]

pub fn set_port(&mut self, port: u32)[src]

pub fn get_port(&self) -> u32[src]

pub fn get_port_count(&self) -> u32[src]

pub fn get_proto(&self) -> &SdpProtocolValue[src]

pub fn get_formats(&self) -> &SdpFormatList[src]

pub fn get_bandwidth(&self) -> &Vec<SdpBandwidth>[src]

pub fn add_bandwidth(&mut self, bw: SdpBandwidth)[src]

pub fn get_attributes(&self) -> &Vec<SdpAttribute>[src]

pub fn add_attribute(
    &mut self,
    attr: SdpAttribute
) -> Result<(), SdpParserInternalError>
[src]

pub fn get_attribute(&self, t: SdpAttributeType) -> Option<&SdpAttribute>[src]

pub fn remove_attribute(&mut self, t: SdpAttributeType)[src]

pub fn set_attribute(
    &mut self,
    attr: SdpAttribute
) -> Result<(), SdpParserInternalError>
[src]

pub fn remove_codecs(&mut self)[src]

pub fn add_codec(
    &mut self,
    rtpmap: SdpAttributeRtpmap
) -> Result<(), SdpParserInternalError>
[src]

pub fn get_attributes_of_type(&self, t: SdpAttributeType) -> Vec<&SdpAttribute>[src]

pub fn get_connection(&self) -> &Option<SdpConnection>[src]

pub fn set_connection(
    &mut self,
    c: SdpConnection
) -> Result<(), SdpParserInternalError>
[src]

pub fn add_datachannel(
    &mut self,
    name: String,
    port: u16,
    streams: u16,
    msg_size: u32
) -> Result<(), SdpParserInternalError>
[src]

Trait Implementations

impl AnonymizingClone for SdpMedia[src]

impl Clone for SdpMedia[src]

impl Display for SdpMedia[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.