pub fn direction(&self) -> CommunicationDirection {
        match self {
            UciMessage::Uci |
            UciMessage::Debug(..) |
            UciMessage::IsReady |
            UciMessage::Register { .. } |
            UciMessage::Position { .. } |
            UciMessage::SetOption { .. } |
            UciMessage::UciNewGame |
            UciMessage::Stop |
            UciMessage::PonderHit |
            UciMessage::Quit |
            UciMessage::Go { .. } => CommunicationDirection::GuiToEngine,
            _ => CommunicationDirection::EngineToGui
        }
    }
/// Returns whether the command was meant for the engine or for the GUI.
Returns whether the command was meant for the engine or for the GUI.
Returns whether the command was meant for the engine or for the GUI .
pub fn direction(&self) -> CommunicationDirection {
        match self {
            UciMessage::Uci |
            UciMessage::Debug(..) |
            UciMessage::IsReady |
            UciMessage::Register { .. } |
            UciMessage::Position { .. } |
            UciMessage::SetOption { .. } |
            UciMessage::UciNewGame |
            UciMessage::Stop |
            UciMessage::PonderHit |
            UciMessage::Quit |
            UciMessage::Go { .. } => CommunicationDirection::GuiToEngine,
            _ => CommunicationDirection::EngineToGui
        }
    }
pub fn direction ( & self ) -> CommunicationDirection { match self { UciMessage :: Uci | UciMessage :: Debug ( .. ) | UciMessage :: IsReady | UciMessage :: Register { .. } | UciMessage :: Position { .. } | UciMessage :: SetOption { .. } | UciMessage :: UciNewGame | UciMessage :: Stop | UciMessage :: PonderHit | UciMessage :: Quit | UciMessage :: Go { .. } => CommunicationDirection :: GuiToEngine , _ => CommunicationDirection :: EngineToGui } }
Returns whether the command was meant for the engine or for the GUI.
Returns whether the command was meant for the engine or for the GUI .
&self