Enum turnclient::ChannelUsage
source · pub enum ChannelUsage {
WithChannel,
JustPermission,
}
Expand description
Whether to just create permission of also allocate a channel for it. I don’t see much reasons not to allocate a channel.
Variants§
WithChannel
Create a channel, resulting in shorter datagrams between you and TURN for this peer.
JustPermission
Only create permission and use send indications (more overhead compared to channel messages)
Trait Implementations§
source§impl Clone for ChannelUsage
impl Clone for ChannelUsage
source§fn clone(&self) -> ChannelUsage
fn clone(&self) -> ChannelUsage
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 moresource§impl Debug for ChannelUsage
impl Debug for ChannelUsage
source§impl Hash for ChannelUsage
impl Hash for ChannelUsage
source§impl Ord for ChannelUsage
impl Ord for ChannelUsage
source§fn cmp(&self, other: &ChannelUsage) -> Ordering
fn cmp(&self, other: &ChannelUsage) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ChannelUsage> for ChannelUsage
impl PartialEq<ChannelUsage> for ChannelUsage
source§fn eq(&self, other: &ChannelUsage) -> bool
fn eq(&self, other: &ChannelUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChannelUsage> for ChannelUsage
impl PartialOrd<ChannelUsage> for ChannelUsage
source§fn partial_cmp(&self, other: &ChannelUsage) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelUsage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more