[−][src]Struct rust_ipv8::payloads::puncturerequestpayload::PunctureRequestPayload
The actual payload used when requesting a NAT puncture.
Fields
lan_walker_address: Address
is the lan address of the node that the sender wants us to contact. This contact attempt should punch a hole in our NAT to allow the node to connect to us.
wan_walker_address: Address
is the lan address of the node that the sender wants us to contact. This contact attempt should punch a hole in our NAT to allow the node to connect to us. TODO differences with lan walker address as comments are the same rn.
identifier: u16
is a number that must be given in the associated introduction-response. This number allows to distinguish between multiple introduction-response messages. NOTE: u16 is the max value given by the py-ipv8 implementation (https://github.com/Tribler/py-ipv8/blob/57c1aa73eee8a3b7ee6ad48482fc2e0d5849415e/ipv8/messaging/payload.py#L74)
Trait Implementations
impl Ipv8Payload for PunctureRequestPayload
[src]
impl PartialEq<PunctureRequestPayload> for PunctureRequestPayload
[src]
fn eq(&self, other: &PunctureRequestPayload) -> bool
[src]
fn ne(&self, other: &PunctureRequestPayload) -> bool
[src]
impl Debug for PunctureRequestPayload
[src]
impl Serialize for PunctureRequestPayload
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for PunctureRequestPayload
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for PunctureRequestPayload
impl Sync for PunctureRequestPayload
impl Send for PunctureRequestPayload
impl RefUnwindSafe for PunctureRequestPayload
impl UnwindSafe for PunctureRequestPayload
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,