pub enum Command {
Connect(SocketAddr),
Disconnect(PeerId),
Message(PeerId, RawNetworkMessage),
Shutdown,
Panic,
}Expand description
Command variants for the reactor to process.
Variants§
Connect(SocketAddr)
Connect to a peer at some address.
Disconnect(PeerId)
Disconnect from a peer.
Message(PeerId, RawNetworkMessage)
Send a message to a peer.
Shutdown
Close all connections and shut down the reactor.
Panic
Causes the event loop to panic. Only available in debug mode for integration testing.