Type Alias ruci::EngineConnection
source · pub type EngineConnection = UciConnection<GuiMessage, EngineMessage>;Expand description
A connection to an engine, used by a GUI.
Aliased Type§
struct EngineConnection {
pub process: Child,
pub stdout: ChildStdout,
pub stdin: ChildStdin,
/* private fields */
}Fields§
§process: Child§stdout: ChildStdout§stdin: ChildStdinImplementations§
source§impl EngineConnection
impl EngineConnection
sourcepub fn use_uci(&mut self) -> Result<(Option<IdMessageKind>, Vec<OptionMessage>)>
pub fn use_uci(&mut self) -> Result<(Option<IdMessageKind>, Vec<OptionMessage>)>
Sends the GuiMessage::UseUci message and returns the engine’s ID and a vector of options
once the uciok message is received.
§Errors
See Write::write_all.