#[non_exhaustive]pub struct RouterOptions {
pub media_codecs: Vec<RtpCodecCapability>,
pub app_data: AppData,
}
Expand description
Router
options.
§Notes on usage
- Feature codecs such as
RTX
MUST NOT be placed into the mediaCodecs list. - If
preferred_payload_type
is given in aRtpCodecCapability
(although it’s unnecessary) it’s extremely recommended to use a value in the 96-127 range.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.media_codecs: Vec<RtpCodecCapability>
Router media codecs.
app_data: AppData
Custom application data.
Implementations§
Source§impl RouterOptions
impl RouterOptions
Sourcepub fn new(media_codecs: Vec<RtpCodecCapability>) -> Self
pub fn new(media_codecs: Vec<RtpCodecCapability>) -> Self
Create router options with given list of declared media codecs.
Trait Implementations§
Source§impl Debug for RouterOptions
impl Debug for RouterOptions
Auto Trait Implementations§
impl Freeze for RouterOptions
impl !RefUnwindSafe for RouterOptions
impl Send for RouterOptions
impl Sync for RouterOptions
impl Unpin for RouterOptions
impl !UnwindSafe for RouterOptions
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