Struct tox::toxcore::onion::packet::OnionResponse1 [−][src]
pub struct OnionResponse1 { pub onion_return: OnionReturn, pub payload: InnerOnionResponse, }
First onion response packet. It's sent back from the second to the first node from onion chain.
Serialized form:
Length | Content |
---|---|
1 | 0x8e |
59 | OnionReturn |
variable | Payload |
where payload is encrypted OnionAnnounceResponse
or OnionDataResponse
Fields
onion_return: OnionReturn
Return address encrypted by the first node from onion chain
payload: InnerOnionResponse
Encrypted payload
Trait Implementations
impl Clone for OnionResponse1
[src]
impl Clone for OnionResponse1
fn clone(&self) -> OnionResponse1
[src]
fn clone(&self) -> OnionResponse1
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 OnionResponse1
[src]
impl Debug for OnionResponse1
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 OnionResponse1
[src]
impl Eq for OnionResponse1
impl PartialEq for OnionResponse1
[src]
impl PartialEq for OnionResponse1
fn eq(&self, other: &OnionResponse1) -> bool
[src]
fn eq(&self, other: &OnionResponse1) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OnionResponse1) -> bool
[src]
fn ne(&self, other: &OnionResponse1) -> bool
This method tests for !=
.
impl FromBytes for OnionResponse1
[src]
impl FromBytes for OnionResponse1
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], OnionResponse1, u32>
fn from_bytes<'a>(i: &'a [u8]) -> IResult<&'a [u8], OnionResponse1, u32>
Deserialize struct using nom
from raw bytes
impl ToBytes for OnionResponse1
[src]
impl ToBytes for OnionResponse1
Auto Trait Implementations
impl Send for OnionResponse1
impl Send for OnionResponse1
impl Sync for OnionResponse1
impl Sync for OnionResponse1