add documentation
This commit is contained in:
parent
f1503866d7
commit
3351f35583
|
@ -123,6 +123,7 @@ pub enum NetworkMessage {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl RawNetworkMessage {
|
impl RawNetworkMessage {
|
||||||
|
/// Return the message command. This is useful for debug outputs.
|
||||||
pub fn command(&self) -> String {
|
pub fn command(&self) -> String {
|
||||||
match self.payload {
|
match self.payload {
|
||||||
NetworkMessage::Version(_) => "version",
|
NetworkMessage::Version(_) => "version",
|
||||||
|
|
Loading…
Reference in New Issue