pub struct FullContact {
pub local: Contact,
pub public: Contact,
}Expand description
The local and public endpoints of an client.
FullContact::local is only different from FullContact::public when
the client is behind NAT (network address translation).
Fields§
§local: ContactThe peer’s private contact in it’s local network.
The server knows this from ClientMsg::ReadyToShare::local_contact.
public: ContactThe entity’s public contact visible to the internet.
The server determines this by checking where
ClientMsg::RecordPublicAddr messages came from.
Trait Implementations§
Source§impl Clone for FullContact
impl Clone for FullContact
Source§fn clone(&self) -> FullContact
fn clone(&self) -> FullContact
Returns a duplicate 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 FullContact
impl Debug for FullContact
Source§impl Default for FullContact
impl Default for FullContact
Source§fn default() -> FullContact
fn default() -> FullContact
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FullContact
impl<'de> Deserialize<'de> for FullContact
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 FullContact
impl Display for FullContact
Source§impl PartialEq for FullContact
impl PartialEq for FullContact
Source§impl Serialize for FullContact
impl Serialize for FullContact
impl Copy for FullContact
impl Eq for FullContact
impl StructuralPartialEq for FullContact
Auto Trait Implementations§
impl Freeze for FullContact
impl RefUnwindSafe for FullContact
impl Send for FullContact
impl Sync for FullContact
impl Unpin for FullContact
impl UnwindSafe for FullContact
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