Module predicates

Source

Functionsยง

all_listeners_are_ready
Predicate returning true for a cluster event corresponging to the specified node started listening.
all_nodes_peers_are_ready
Returns a predicate over cluster events that returns true once it is called at least once for events that represent established connection between a node and a peer from the nodes_peers.
all_nodes_with_value
For an event for a rust node id, that f maps to Some(v), removes the pair (id, v) from the nodes_items, returning true if it runs out.
async_fn
Wraps plain function over a cluster event into an async one.
default_errors
Function that wraps a cluster event into a Result using default sense of erroneous event.
kad_finished_bootstrap
Predicate if kademlia has finished bootstrap
listener_is_ready
Predicate returning true for a cluster event corresponging to the specified node started listening.
listeners_are_ready
Predicate returning true for a cluster event corresponging to the specified node started listening.
nodes_peers_are_ready
peer_is_connected
Predicate returning true when encountered an event signalling that the peer peer_id is connected to the node id.