[−][src]Struct webrtc_sdp::media_type::SdpMedia
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]
&mut self,
attr: SdpAttribute
) -> Result<(), SdpParserInternalError>
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]
&mut self,
attr: SdpAttribute
) -> Result<(), SdpParserInternalError>
pub fn remove_codecs(&mut self)
[src]
pub fn add_codec(
&mut self,
rtpmap: SdpAttributeRtpmap
) -> Result<(), SdpParserInternalError>
[src]
&mut self,
rtpmap: SdpAttributeRtpmap
) -> Result<(), SdpParserInternalError>
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]
&mut self,
c: SdpConnection
) -> Result<(), SdpParserInternalError>
pub fn add_datachannel(
&mut self,
name: String,
port: u16,
streams: u16,
msg_size: u32
) -> Result<(), SdpParserInternalError>
[src]
&mut self,
name: String,
port: u16,
streams: u16,
msg_size: u32
) -> Result<(), SdpParserInternalError>
Trait Implementations
impl AnonymizingClone for SdpMedia
[src]
fn masked_clone(&self, anon: &mut StatefulSdpAnonymizer) -> Self
[src]
impl Clone for SdpMedia
[src]
impl Display for SdpMedia
[src]
Auto Trait Implementations
impl RefUnwindSafe for SdpMedia
impl Send for SdpMedia
impl Sync for SdpMedia
impl Unpin for SdpMedia
impl UnwindSafe for SdpMedia
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>,