chore(rust): derive debug on ockam commands and variant types
@@ -3,6 +3,7 @@ pub mod ockam_commands {
use ockam_message::message::*;
use std::thread;
+ #[derive(Debug)]
pub enum OckamCommand {
Transport(TransportCommand),
Router(RouterCommand),
@@ -12,6 +13,7 @@ pub mod ockam_commands {
// Transport commands - these can
// be sent to the transport_tx
+ #[derive(Debug)]
pub enum TransportCommand {
Stop,
SendMessage(Message),
@@ -19,6 +21,7 @@ pub mod ockam_commands {
// Router commands - these can be sent to the
// router_tx
+ #[derive(Debug)]
pub enum RouterCommand {
Stop,
Register(AddressType, std::sync::mpsc::Sender<OckamCommand>),
@@ -28,12 +31,15 @@ pub mod ockam_commands {
// Channel commands - these can be sent to the
// channel_tx
+ #[derive(Debug)]
pub enum ChannelCommand {
Stop,
InitializeRoute(Route),
ReceiveMessage(Message),
SendMessage(Message),
}
+
+ #[derive(Debug)]
pub enum WorkerCommand {
Stop,
InitializeRoute(Route),
