#[repr(C, packed(1))]pub struct PingMessage {
pub header: GNUNET_MessageHeader,
pub iv_seed: u32,
pub target: GNUNET_PeerIdentity,
pub challenge: u32,
}Expand description
We’re sending an (encrypted) PING to the other peer to check if it can decrypt. The other peer should respond with a PONG with the same content, except this time encrypted with the receiver’s key.
Fields§
§header: GNUNET_MessageHeaderMessage type is #GNUNET_MESSAGE_TYPE_CORE_PING.
iv_seed: u32Seed for the IV
target: GNUNET_PeerIdentityIntended target of the PING, used primarily to check that decryption actually worked.
challenge: u32Random number chosen to make replay harder.
Trait Implementations§
Source§impl Clone for PingMessage
impl Clone for PingMessage
Source§fn clone(&self) -> PingMessage
fn clone(&self) -> PingMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PingMessage
impl Debug for PingMessage
impl Copy for PingMessage
Auto Trait Implementations§
impl Freeze for PingMessage
impl RefUnwindSafe for PingMessage
impl Send for PingMessage
impl Sync for PingMessage
impl Unpin for PingMessage
impl UnsafeUnpin for PingMessage
impl UnwindSafe for PingMessage
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