#[non_exhaustive]pub struct DataProducerOptions {
pub label: String,
pub protocol: String,
pub paused: bool,
pub app_data: AppData,
/* private fields */
}
Expand description
DataProducer
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.label: String
A label which can be used to distinguish this DataChannel from others.
protocol: String
Name of the sub-protocol used by this DataChannel.
paused: bool
Whether the data producer must start in paused mode. Default false.
app_data: AppData
Custom application data.
Implementations§
Source§impl DataProducerOptions
impl DataProducerOptions
Sourcepub fn new_sctp(sctp_stream_parameters: SctpStreamParameters) -> Self
pub fn new_sctp(sctp_stream_parameters: SctpStreamParameters) -> Self
Data producer options for non-Direct transport.
Sourcepub fn new_direct() -> Self
pub fn new_direct() -> Self
Data producer options for Direct transport.
Trait Implementations§
Source§impl Clone for DataProducerOptions
impl Clone for DataProducerOptions
Source§fn clone(&self) -> DataProducerOptions
fn clone(&self) -> DataProducerOptions
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for DataProducerOptions
impl !RefUnwindSafe for DataProducerOptions
impl Send for DataProducerOptions
impl Sync for DataProducerOptions
impl Unpin for DataProducerOptions
impl !UnwindSafe for DataProducerOptions
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