Struct aquatic_http_protocol::response::ResponsePeer
source · pub struct ResponsePeer<I: Eq> {
pub ip_address: I,
pub port: u16,
}
Fields§
§ip_address: I
§port: u16
Trait Implementations§
source§impl<I: Clone + Eq> Clone for ResponsePeer<I>
impl<I: Clone + Eq> Clone for ResponsePeer<I>
source§fn clone(&self) -> ResponsePeer<I>
fn clone(&self) -> ResponsePeer<I>
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<'de, I> Deserialize<'de> for ResponsePeer<I>where
I: Deserialize<'de> + Eq,
impl<'de, I> Deserialize<'de> for ResponsePeer<I>where I: Deserialize<'de> + Eq,
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<I: PartialEq + Eq> PartialEq<ResponsePeer<I>> for ResponsePeer<I>
impl<I: PartialEq + Eq> PartialEq<ResponsePeer<I>> for ResponsePeer<I>
source§fn eq(&self, other: &ResponsePeer<I>) -> bool
fn eq(&self, other: &ResponsePeer<I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.