[−][src]Enum discv5::Discv5Event
Event that can be produced by the Discv5
service.
Variants
Discovered(RawEnr<CombinedKey>)
A node has been discovered from a FINDNODES request.
The ENR of the node is returned. Various properties can be derived from the ENR.
NodeId
: enr.node_id()SeqNo
: enr.seq_no()Ip
: enr.ip()
A new ENR was added to the routing table.
Fields of EnrAdded
enr: RawEnr<CombinedKey>
replaced: Option<RawEnr<CombinedKey>>
A new node has been added to the routing table.
SocketUpdated(SocketAddr)
Our local ENR IP address has been updated.
Result of a FIND_NODE
iterative query.
Fields of FindNodeResult
key: NodeId
The key that we looked for in the query.
closer_peers: Vec<RawEnr<CombinedKey>>
List of peers ordered from closest to furthest away.
query_id: QueryId
Id of the query this result fulfils
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Discv5Event
impl Send for Discv5Event
impl Sync for Discv5Event
impl Unpin for Discv5Event
impl UnwindSafe for Discv5Event
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,