pub struct DataChannelConfig {
pub channel_type: ChannelType,
pub negotiated: bool,
pub priority: u16,
pub reliability_parameter: u32,
pub label: String,
pub protocol: String,
}Expand description
DataChannelConfig is used to configure the data channel.
Fields§
§channel_type: ChannelTypeThe reliability and ordering guarantees to request.
negotiated: boolWhether the channel was negotiated out of band.
When true no DCEP DATA_CHANNEL_OPEN is sent — both sides are assumed to have agreed
the stream id and parameters through signalling instead.
priority: u16The channel’s relative priority; see the CHANNEL_PRIORITY_* constants.
reliability_parameter: u32The retransmission count or message lifetime, interpreted according to
Self::channel_type.
label: StringThe channel label, used to distinguish channels on the same association.
protocol: StringThe subprotocol name, or empty if none.
Trait Implementations§
Source§impl Clone for DataChannelConfig
impl Clone for DataChannelConfig
Source§fn clone(&self) -> DataChannelConfig
fn clone(&self) -> DataChannelConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataChannelConfig
impl Debug for DataChannelConfig
Source§impl Default for DataChannelConfig
impl Default for DataChannelConfig
Source§fn default() -> DataChannelConfig
fn default() -> DataChannelConfig
Returns the “default value” for a type. Read more
impl Eq for DataChannelConfig
Source§impl PartialEq for DataChannelConfig
impl PartialEq for DataChannelConfig
impl StructuralPartialEq for DataChannelConfig
Auto Trait Implementations§
impl Freeze for DataChannelConfig
impl RefUnwindSafe for DataChannelConfig
impl Send for DataChannelConfig
impl Sync for DataChannelConfig
impl Unpin for DataChannelConfig
impl UnsafeUnpin for DataChannelConfig
impl UnwindSafe for DataChannelConfig
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