add documentation

This commit is contained in:
Tamas Blummer 2018-02-28 20:27:52 +01:00
parent f1503866d7
commit 3351f35583
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ pub enum NetworkMessage {
}
impl RawNetworkMessage {
/// Return the message command. This is useful for debug outputs.
pub fn command(&self) -> String {
match self.payload {
NetworkMessage::Version(_) => "version",