pub struct ProtocolData {
pub address: IpAddr,
pub mode: String,
pub port: u16,
}
Expand description
The client’s response to a connection offer.
Fields§
§address: IpAddr
IP address of the client as seen by the server (e.g., after using IP Discovery for NAT hole-punching).
mode: String
The client’s chosen encryption mode (from those offered by the server).
port: u16
UDP source port of the client as seen by the server, as above.
Trait Implementations§
Source§impl Clone for ProtocolData
impl Clone for ProtocolData
Source§fn clone(&self) -> ProtocolData
fn clone(&self) -> ProtocolData
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 ProtocolData
impl Debug for ProtocolData
Source§impl<'de> Deserialize<'de> for ProtocolData
impl<'de> Deserialize<'de> for ProtocolData
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 Hash for ProtocolData
impl Hash for ProtocolData
Source§impl PartialEq for ProtocolData
impl PartialEq for ProtocolData
Source§impl Serialize for ProtocolData
impl Serialize for ProtocolData
impl Eq for ProtocolData
impl StructuralPartialEq for ProtocolData
Auto Trait Implementations§
impl Freeze for ProtocolData
impl RefUnwindSafe for ProtocolData
impl Send for ProtocolData
impl Sync for ProtocolData
impl Unpin for ProtocolData
impl UnwindSafe for ProtocolData
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