Struct matchbox_socket::ChannelConfig
source · pub struct ChannelConfig {
pub ordered: bool,
pub max_retransmits: Option<u16>,
}
Expand description
Configuration options for a data channel See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel
Fields§
§ordered: bool
Whether messages sent on the channel are guaranteed to arrive in order See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/ordered
max_retransmits: Option<u16>
Maximum number of retransmit attempts of a message before giving up See also: https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxRetransmits
Implementations§
source§impl ChannelConfig
impl ChannelConfig
sourcepub fn unreliable() -> Self
pub fn unreliable() -> Self
Messages sent via an unreliable channel may arrive in any order or not at all, but arrive as quickly as possible
Trait Implementations§
source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
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 RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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