Crate crust [−] [src]
crust
Reliable peer-to-peer network connections in Rust with NAT traversal.
Structs
ConnectionInfoResult |
The result of a |
PeerId |
An identifier of a peer node. |
PrivConnectionInfo |
Contact info generated by a call to |
PubConnectionInfo |
Contact info used to connect to another peer. |
Service |
A structure representing a connection manager. This is the main object through which crust is used. |
Enums
CrustError |
Crust's universal error type. |
Event |
Enum representing different events that will be sent over the asynchronous channel to the user of this module. |
Constants
MSG_DROP_PRIORITY |
Minimum priority for droppable messages. Messages with lower values will never be dropped. |
Type Definitions
CrustEventSender |
Used to receive events from a |
Priority |
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 |
Res |
Crust's result type |