Available on crate feature
test-utils
only.Expand description
Mock discovery support
Structs§
- Mock discovery node
Enums§
- Represents commands for interacting with the
MockDiscovery
service. - Represents the event types produced by the mock service.
Functions§
- Creates a new testing instance for
Discv4
and its service - Creates a new testing instance for
Discv4
and its service with the given config. - Generates a random
NodeEndpoint
using the provided random number generator. - Generates a random IPv4
NodeRecord
using the provided random number generator. - Generates a random IPv6
NodeRecord
using the provided random number generator. - Generates a random
Message
using the provided random number generator. - Generates a random
NodeRecord
using the provided random number generator.