Reliable peer-to-peer network connections in Rust with NAT traversal.
Crust configuration settings
The result of a
Contact info generated by a call to
Contact info used to connect to another peer.
A structure representing all the Crust services. This is the main object through which crust is used.
Crust's universal error type.
Specify crust user. Behaviour (for example in bootstrap phase) will be different for different variants. Node will request the Bootstrapee to connect back to this crust failing which it would mean it's not reachable from outside and hence should be rejected bootstrap attempts.
Enum representing different events that will be sent over the asynchronous channel to the user of this module.
Minimum priority for droppable messages. Messages with lower values will never be dropped.
Trait for specifying a unique identifier for a Crust peer
Reads the default crust config file.
Used to receive events from a
Priority of a message to be sent by Crust. A lower value means a higher priority, so Priority 0
is the highest one. Low-priority messages will be preempted if need be to allow higher priority
messages through. Messages with a value
Crust's result type