pub struct RtpMap {
pub payload_type: u8,
pub encoding_name: String,
pub clock_rate: u32,
pub channels: Option<u32>,
}Expand description
a=rtpmap:<payload type> <encoding name>/<clock rate>[/<encoding params>] (RFC 8866
section 6.6).
rtpmap-value = payload-type SP encoding-name "/" clock-rate [ "/" encoding-params ]
payload-type = zero-based-integer
encoding-name = token
clock-rate = integer
encoding-params = channels
channels = integerFields§
§payload_type: u8The payload type, 0 to 127.
encoding_name: StringThe encoding name, as written. Names are compared without regard to case
(section 6.6): see RtpMap::is_encoding.
clock_rate: u32The RTP clock rate, in Hz. Never zero.
channels: Option<u32>The number of audio channels, when the line gives it. Section 6.6: it “MAY be omitted if the number of channels is one”.
Implementations§
Trait Implementations§
impl Eq for RtpMap
impl StructuralPartialEq for RtpMap
Auto Trait Implementations§
impl Forget for RtpMap
impl Freeze for RtpMap
impl Move for RtpMap
impl RefUnwindSafe for RtpMap
impl Send for RtpMap
impl Sync for RtpMap
impl Unpin for RtpMap
impl UnsafeUnpin for RtpMap
impl UnwindSafe for RtpMap
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