pub struct ExtMap {
pub id: u8,
pub direction: Option<Direction>,
pub uri: String,
pub attributes: Option<String>,
}Expand description
RTP header extensions map
Fields§
§id: u8The local identifier (ID) of this extension
direction: Option<Direction>Direction
uri: StringThe format and meaning of the extension
attributes: Option<String>Extension attributes
Implementations§
Source§impl ExtMap
impl ExtMap
pub fn new(id: u8, uri: impl ToString) -> Self
pub fn builder(id: u8, uri: impl ToString) -> ExtMap
pub fn with_direction(id: u8, direction: Direction, uri: impl ToString) -> Self
pub fn with_direction_and_attributes( id: u8, direction: Direction, uri: impl ToString, attributes: impl ToString, ) -> Self
pub fn set_direction(&mut self, direction: Direction)
pub fn set_attributes(&mut self, attributes: impl ToString)
Trait Implementations§
impl Eq for ExtMap
Source§impl Ord for ExtMap
impl Ord for ExtMap
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ExtMap
impl PartialOrd for ExtMap
impl StructuralPartialEq for ExtMap
Auto Trait Implementations§
impl Freeze for ExtMap
impl RefUnwindSafe for ExtMap
impl Send for ExtMap
impl Sync for ExtMap
impl Unpin for ExtMap
impl UnsafeUnpin for ExtMap
impl UnwindSafe for ExtMap
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