pub struct Fmtp {
pub format: String,
pub parameters: String,
}Expand description
a=fmtp:<format> <format specific parameters> (RFC 8866 section 6.15).
The parameters are a byte-string that SDP conveys “unchanged” to the format: everything
after the first space, spaces included. Fmtp::parameter_list reads the
name=value;name=value shape most RTP payload formats use (RFC 4855), without changing
the text or the order.
Fields§
§format: StringThe format: for RTP, a payload type.
parameters: StringThe format-specific parameters, exactly as written.
Implementations§
Source§impl Fmtp
impl Fmtp
Sourcepub fn payload_type(&self) -> Option<u8>
pub fn payload_type(&self) -> Option<u8>
The format as an RTP payload type, when it is one.
Sourcepub fn parameter_list(&self) -> Vec<(&str, Option<&str>)>
pub fn parameter_list(&self) -> Vec<(&str, Option<&str>)>
The parameters split at ;, each into its name and (after the first =) its
value, with the white space around them removed, in the order written.
A part without = has no value: a=fmtp:101 0-16 (RFC 4733 events) is one such
part. Empty parts (a trailing ;) are skipped.
Trait Implementations§
impl Eq for Fmtp
impl StructuralPartialEq for Fmtp
Auto Trait Implementations§
impl Forget for Fmtp
impl Freeze for Fmtp
impl Move for Fmtp
impl RefUnwindSafe for Fmtp
impl Send for Fmtpwhere
RawVecInner: Send,
impl Sync for Fmtpwhere
RawVecInner: Sync,
impl Unpin for Fmtp
impl UnsafeUnpin for Fmtp
impl UnwindSafe for Fmtpwhere
RawVecInner: UnwindSafe,
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