pub struct Rid {
pub id: String,
pub direction: RidDirection,
pub params: Vec<String>,
}Expand description
Restricted identification line (a=rid) attribute
Represents the send/recv restriction that defines a unique RTP payload
configuration, see
RFC 8851 Section 4.
Restriction parameters (pt=, max-width=, max-br=, …) are kept as raw
name[=value] tokens, in order, without interpretation. The optional pt=
payload format list is the first parameter when present.
Fields§
§id: StringThe restriction identifier, referenced by a=extmap and SDES items.
direction: RidDirectionWhether the restriction applies to a send or recv stream.
params: Vec<String>Restriction parameters, e.g. pt=99,102 or max-br=64000.
Implementations§
Source§impl Rid
impl Rid
pub fn new(id: impl ToString, direction: RidDirection) -> Self
pub fn add_param(&mut self, param: impl ToString)
pub fn with_params( id: impl ToString, direction: RidDirection, params: impl IntoIterator<Item = impl ToString>, ) -> Self
Trait Implementations§
impl Eq for Rid
impl StructuralPartialEq for Rid
Auto Trait Implementations§
impl Freeze for Rid
impl RefUnwindSafe for Rid
impl Send for Rid
impl Sync for Rid
impl Unpin for Rid
impl UnsafeUnpin for Rid
impl UnwindSafe for Rid
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