pub fn command(&self) -> &'static str {
        match self {
            Message::Version { .. } => "version",
            Message::Verack => "verack",
            Message::Ping(_) => "ping",
            Message::Pong(_) => "pong",
            Message::Reject { .. } => "reject",
            Message::GetAddr => "getaddr",
            Message::Addr(_) => "addr",
            Message::GetBlocks { .. } => "getblocks",
            Message::Inv(_) => "inv",
            Message::GetHeaders { .. } => "getheaders",
            Message::Headers(_) => "headers",
            Message::GetData(_) => "getdata",
            Message::Block(_) => "block",
            Message::Tx(_) => "tx",
            Message::NotFound(_) => "notfound",
            Message::Mempool => "mempool",
            Message::FilterLoad { .. } => "filterload",
            Message::FilterAdd { .. } => "filteradd",
            Message::FilterClear => "filterclear",
        }
    }
/// Returns the Zcash protocol message command as a string.
Returns the Zcash protocol message command as a string.
Returns the Zcash protocol message command as a string .
pub fn command(&self) -> &'static str {
        match self {
            Message::Version { .. } => "version",
            Message::Verack => "verack",
            Message::Ping(_) => "ping",
            Message::Pong(_) => "pong",
            Message::Reject { .. } => "reject",
            Message::GetAddr => "getaddr",
            Message::Addr(_) => "addr",
            Message::GetBlocks { .. } => "getblocks",
            Message::Inv(_) => "inv",
            Message::GetHeaders { .. } => "getheaders",
            Message::Headers(_) => "headers",
            Message::GetData(_) => "getdata",
            Message::Block(_) => "block",
            Message::Tx(_) => "tx",
            Message::NotFound(_) => "notfound",
            Message::Mempool => "mempool",
            Message::FilterLoad { .. } => "filterload",
            Message::FilterAdd { .. } => "filteradd",
            Message::FilterClear => "filterclear",
        }
    }
pub fn command ( & self ) -> & ' static str { match self { Message :: Version { .. } => " " , Message :: Verack => " " , Message :: Ping ( _ ) => " " , Message :: Pong ( _ ) => " " , Message :: Reject { .. } => " " , Message :: GetAddr => " " , Message :: Addr ( _ ) => " " , Message :: GetBlocks { .. } => " " , Message :: Inv ( _ ) => " " , Message :: GetHeaders { .. } => " " , Message :: Headers ( _ ) => " " , Message :: GetData ( _ ) => " " , Message :: Block ( _ ) => " " , Message :: Tx ( _ ) => " " , Message :: NotFound ( _ ) => " " , Message :: Mempool => " " , Message :: FilterLoad { .. } => " " , Message :: FilterAdd { .. } => " " , Message :: FilterClear => " " , } }
Returns the Zcash protocol message command as a string.
Returns the Zcash protocol message command as a string .
&self