Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
tamasblummer committed Feb 28, 2018
1 parent f150386 commit 3351f35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/network/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3351f35

Please sign in to comment.