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) -> ForkId
fn from(entry: EnrForkIdEntry) -> ForkId
Converts to this type from the input type.
Source§impl From<ForkId> for EnrForkIdEntry
impl From<ForkId> for EnrForkIdEntry
Source§fn from(fork_id: ForkId) -> EnrForkIdEntry
fn from(fork_id: ForkId) -> EnrForkIdEntry
Converts to this type from the input type.
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,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more