pub enum PacketKind {
Message {
src_id: NodeId,
},
WhoAreYou {
id_nonce: IdNonce,
enr_seq: u64,
},
Handshake {
src_id: NodeId,
id_nonce_sig: Vec<u8>,
ephem_pubkey: Vec<u8>,
enr_record: Option<Enr>,
},
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PacketKind
impl Clone for PacketKind
Source§fn clone(&self) -> PacketKind
fn clone(&self) -> PacketKind
Returns a duplicate of the value. Read more
1.0.0 · 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 PacketKind
impl Debug for PacketKind
Source§impl Display for PacketKind
impl Display for PacketKind
Source§impl From<&PacketKind> for u8
impl From<&PacketKind> for u8
Source§fn from(kind: &PacketKind) -> Self
fn from(kind: &PacketKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PacketKind
impl PartialEq for PacketKind
impl Eq for PacketKind
impl StructuralPartialEq for PacketKind
Auto Trait Implementations§
impl Freeze for PacketKind
impl RefUnwindSafe for PacketKind
impl Send for PacketKind
impl Sync for PacketKind
impl Unpin for PacketKind
impl UnwindSafe for PacketKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.