Enum webrtc_ice::network_type::NetworkType
source · pub enum NetworkType {
Unspecified,
Udp4,
Udp6,
Tcp4,
Tcp6,
}
Expand description
Represents the type of network.
Variants§
Unspecified
Udp4
Indicates UDP over IPv4.
Udp6
Indicates UDP over IPv6.
Tcp4
Indicates TCP over IPv4.
Tcp6
Indicates TCP over IPv6.
Implementations§
source§impl NetworkType
impl NetworkType
sourcepub fn network_short(self) -> String
pub fn network_short(self) -> String
Returns the short network description.
sourcepub const fn is_reliable(self) -> bool
pub const fn is_reliable(self) -> bool
Returns true if the network is reliable.
Trait Implementations§
source§impl Clone for NetworkType
impl Clone for NetworkType
source§fn clone(&self) -> NetworkType
fn clone(&self) -> NetworkType
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 NetworkType
impl Debug for NetworkType
source§impl Default for NetworkType
impl Default for NetworkType
source§impl<'de> Deserialize<'de> for NetworkType
impl<'de> Deserialize<'de> for NetworkType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for NetworkType
impl Display for NetworkType
source§impl From<u8> for NetworkType
impl From<u8> for NetworkType
source§impl Hash for NetworkType
impl Hash for NetworkType
source§impl PartialEq for NetworkType
impl PartialEq for NetworkType
source§fn eq(&self, other: &NetworkType) -> bool
fn eq(&self, other: &NetworkType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkType
impl Serialize for NetworkType
impl Copy for NetworkType
impl Eq for NetworkType
impl StructuralPartialEq for NetworkType
Auto Trait Implementations§
impl RefUnwindSafe for NetworkType
impl Send for NetworkType
impl Sync for NetworkType
impl Unpin for NetworkType
impl UnwindSafe for NetworkType
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