pub struct EnrResponse {
pub request_hash: B256,
pub enr: Enr<SecretKey>,
}Expand description
This packet is used to respond to an ENRRequest packet and includes the requested ENR along
with the hash of the original request.
Fields§
§request_hash: B256The hash of the ENRRequest packet being replied to.
enr: Enr<SecretKey>The ENR (Ethereum Node Record) for the responding node.
Implementations§
Source§impl EnrResponse
impl EnrResponse
Sourcepub fn eth_fork_id(&self) -> Option<ForkId>
pub fn eth_fork_id(&self) -> Option<ForkId>
Returns the [ForkId] if set
Trait Implementations§
Source§impl Clone for EnrResponse
impl Clone for EnrResponse
Source§impl Debug for EnrResponse
impl Debug for EnrResponse
Source§impl Decodable for EnrResponse
impl Decodable for EnrResponse
Source§impl Encodable for EnrResponse
impl Encodable for EnrResponse
impl Eq for EnrResponse
Source§impl PartialEq for EnrResponse
impl PartialEq for EnrResponse
impl StructuralPartialEq for EnrResponse
Auto Trait Implementations§
impl Freeze for EnrResponse
impl RefUnwindSafe for EnrResponse
impl Send for EnrResponse
impl Sync for EnrResponse
impl Unpin for EnrResponse
impl UnsafeUnpin for EnrResponse
impl UnwindSafe for EnrResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 120 bytes