pub enum NetworkTarget {
IP(SocketAddr),
Domain(String, Port),
}Expand description
Represents either IPV4 and IPV6 via NetworkTarget::IP or domain via NetworkTarget::Domain
Variants§
IP(SocketAddr)
Domain(String, Port)
Trait Implementations§
Source§impl Clone for NetworkTarget
impl Clone for NetworkTarget
Source§fn clone(&self) -> NetworkTarget
fn clone(&self) -> NetworkTarget
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 From<SocketAddrV4> for NetworkTarget
impl From<SocketAddrV4> for NetworkTarget
Source§fn from(value: SocketAddrV4) -> Self
fn from(value: SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV6> for NetworkTarget
impl From<SocketAddrV6> for NetworkTarget
Source§fn from(value: SocketAddrV6) -> Self
fn from(value: SocketAddrV6) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetworkTarget
impl RefUnwindSafe for NetworkTarget
impl Send for NetworkTarget
impl Sync for NetworkTarget
impl Unpin for NetworkTarget
impl UnsafeUnpin for NetworkTarget
impl UnwindSafe for NetworkTarget
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