Enum srt_protocol::options::SocketHost
source · pub enum SocketHost {
Domain(String),
Ipv4(Ipv4Addr),
Ipv6(Ipv6Addr),
}
Variants§
Domain(String)
A DNS domain name, as ‘.’ dot-separated labels.
Ipv4(Ipv4Addr)
An IPv4 address.
Ipv6(Ipv6Addr)
An IPv6 address.
Trait Implementations§
source§impl Clone for SocketHost
impl Clone for SocketHost
source§fn clone(&self) -> SocketHost
fn clone(&self) -> SocketHost
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 SocketHost
impl Debug for SocketHost
source§impl Default for SocketHost
impl Default for SocketHost
source§impl From<IpAddr> for SocketHost
impl From<IpAddr> for SocketHost
source§impl From<Ipv4Addr> for SocketHost
impl From<Ipv4Addr> for SocketHost
source§fn from(ipv4: Ipv4Addr) -> SocketHost
fn from(ipv4: Ipv4Addr) -> SocketHost
Converts to this type from the input type.
source§impl From<Ipv6Addr> for SocketHost
impl From<Ipv6Addr> for SocketHost
source§fn from(ipv6: Ipv6Addr) -> SocketHost
fn from(ipv6: Ipv6Addr) -> SocketHost
Converts to this type from the input type.
source§impl Hash for SocketHost
impl Hash for SocketHost
source§impl Ord for SocketHost
impl Ord for SocketHost
source§fn cmp(&self, other: &SocketHost) -> Ordering
fn cmp(&self, other: &SocketHost) -> 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<SocketHost> for SocketHost
impl PartialEq<SocketHost> for SocketHost
source§fn eq(&self, other: &SocketHost) -> bool
fn eq(&self, other: &SocketHost) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SocketHost> for SocketHost
impl PartialOrd<SocketHost> for SocketHost
source§fn partial_cmp(&self, other: &SocketHost) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketHost) -> 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 moresource§impl TryInto<IpAddr> for SocketHost
impl TryInto<IpAddr> for SocketHost
impl Eq for SocketHost
impl StructuralEq for SocketHost
impl StructuralPartialEq for SocketHost
Auto Trait Implementations§
impl RefUnwindSafe for SocketHost
impl Send for SocketHost
impl Sync for SocketHost
impl Unpin for SocketHost
impl UnwindSafe for SocketHost
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.