[][src]Struct rust_ipv8::payloads::puncturerequestpayload::PunctureRequestPayload

pub struct PunctureRequestPayload {
    pub lan_walker_address: Address,
    pub wan_walker_address: Address,
    pub identifier: u16,
}

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]

impl Debug for PunctureRequestPayload[src]

impl Serialize for PunctureRequestPayload[src]

impl<'de> Deserialize<'de> for PunctureRequestPayload[src]

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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]