Struct tox::toxcore::onion::packet::OnionRequest0Payload [−][src]
pub struct OnionRequest0Payload { pub ip_port: IpPort, pub temporary_pk: PublicKey, pub inner: Vec<u8>, }
Unencrypted payload of OnionRequest0
packet.
Inner payload should be sent to the next node with address from ip_port
field.
Serialized form:
Length | Content |
---|---|
19 | IpPort of the next node |
32 | Temporary PublicKey |
variable | Payload |
where payload is encrypted OnionRequest1Payload
Fields
ip_port: IpPort
Address of the next node in the onion path
temporary_pk: PublicKey
Temporary PublicKey
for the current encrypted payload
inner: Vec<u8>
Inner onion payload
Trait Implementations
impl Clone for OnionRequest0Payload
[src]
impl Clone for OnionRequest0Payload
fn clone(&self) -> OnionRequest0Payload
[src]
fn clone(&self) -> OnionRequest0Payload
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for OnionRequest0Payload
[src]
impl Debug for OnionRequest0Payload
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for OnionRequest0Payload
[src]
impl Eq for OnionRequest0Payload
impl PartialEq for OnionRequest0Payload
[src]
impl PartialEq for OnionRequest0Payload
fn eq(&self, other: &OnionRequest0Payload) -> bool
[src]
fn eq(&self, other: &OnionRequest0Payload) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OnionRequest0Payload) -> bool
[src]
fn ne(&self, other: &OnionRequest0Payload) -> bool
This method tests for !=
.
impl FromBytes for OnionRequest0Payload
[src]
impl FromBytes for OnionRequest0Payload
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], OnionRequest0Payload, u32>
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], OnionRequest0Payload, u32>
Deserialize struct using nom
from raw bytes
impl ToBytes for OnionRequest0Payload
[src]
impl ToBytes for OnionRequest0Payload
Auto Trait Implementations
impl Send for OnionRequest0Payload
impl Send for OnionRequest0Payload
impl Sync for OnionRequest0Payload
impl Sync for OnionRequest0Payload