pub struct HeaderExtension {
uri: HeaderExtensionUri,
id: HeaderExtensionId,
encrypt: bool,
}Expand description
RTP header-extension configuration (RFC 8285).
Allows carrying extra metadata (like bandwidth estimation hints or audio levels) in a standard way within the RTP packet header.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| defined by profile | length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ID | len | data... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+Fields§
§uri: HeaderExtensionUri§id: HeaderExtensionId§encrypt: boolImplementations§
Source§impl HeaderExtension
impl HeaderExtension
pub fn new( uri: impl Into<HeaderExtensionUri>, id: impl Into<HeaderExtensionId>, ) -> Self
pub fn with_encryption(self, encrypt: bool) -> Self
pub fn uri_kind(&self) -> &HeaderExtensionUri
pub fn id(&self) -> HeaderExtensionId
pub fn uri(&self) -> &str
pub fn encrypt(&self) -> bool
Trait Implementations§
Source§impl Clone for HeaderExtension
impl Clone for HeaderExtension
Source§fn clone(&self) -> HeaderExtension
fn clone(&self) -> HeaderExtension
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderExtension
impl Debug for HeaderExtension
Source§impl PartialEq for HeaderExtension
impl PartialEq for HeaderExtension
impl Eq for HeaderExtension
impl StructuralPartialEq for HeaderExtension
Auto Trait Implementations§
impl Freeze for HeaderExtension
impl RefUnwindSafe for HeaderExtension
impl Send for HeaderExtension
impl Sync for HeaderExtension
impl Unpin for HeaderExtension
impl UnsafeUnpin for HeaderExtension
impl UnwindSafe for HeaderExtension
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