pub struct EnrForkIdEntry {
pub fork_id: ForkId,
}
Expand description
Represents a forward-compatible ENR entry for including the forkid in a node record via EIP-868. Forward compatibility is achieved via EIP-8.
See: https://github.com/ethereum/devp2p/blob/master/enr-entries/eth.md#entry-format
for how geth implements ForkId
values and forward compatibility.
Fields§
§fork_id: ForkId
The inner forkid
Trait Implementations§
Source§impl Clone for EnrForkIdEntry
impl Clone for EnrForkIdEntry
Source§fn clone(&self) -> EnrForkIdEntry
fn clone(&self) -> EnrForkIdEntry
Returns a copy 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 EnrForkIdEntry
impl Debug for EnrForkIdEntry
Source§impl Decodable for EnrForkIdEntry
impl Decodable for EnrForkIdEntry
Source§impl Encodable for EnrForkIdEntry
impl Encodable for EnrForkIdEntry
Source§impl From<EnrForkIdEntry> for ForkId
impl From<EnrForkIdEntry> for ForkId
Source§fn from(entry: EnrForkIdEntry) -> Self
fn from(entry: EnrForkIdEntry) -> Self
Converts to this type from the input type.
Source§impl From<ForkId> for EnrForkIdEntry
impl From<ForkId> for EnrForkIdEntry
Source§impl PartialEq for EnrForkIdEntry
impl PartialEq for EnrForkIdEntry
impl Eq for EnrForkIdEntry
impl StructuralPartialEq for EnrForkIdEntry
Auto Trait Implementations§
impl Freeze for EnrForkIdEntry
impl RefUnwindSafe for EnrForkIdEntry
impl Send for EnrForkIdEntry
impl Sync for EnrForkIdEntry
impl Unpin for EnrForkIdEntry
impl UnwindSafe for EnrForkIdEntry
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes