#[non_exhaustive]pub struct WebRtcServerOptions {
pub listen_infos: WebRtcServerListenInfos,
pub app_data: AppData,
}
Expand description
WebRtcServer
options.
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.listen_infos: WebRtcServerListenInfos
Listening infos in order of preference (first one is the preferred one).
app_data: AppData
Custom application data.
Implementations§
Source§impl WebRtcServerOptions
impl WebRtcServerOptions
Sourcepub fn new(listen_infos: WebRtcServerListenInfos) -> Self
pub fn new(listen_infos: WebRtcServerListenInfos) -> Self
Create WebRtcServer
options with given listen infos.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebRtcServerOptions
impl !RefUnwindSafe for WebRtcServerOptions
impl Send for WebRtcServerOptions
impl Sync for WebRtcServerOptions
impl Unpin for WebRtcServerOptions
impl !UnwindSafe for WebRtcServerOptions
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