Enum usi::GuiCommand [−][src]
pub enum GuiCommand {
GameOver(GameOverKind),
Go(ThinkParams),
IsReady,
Ponderhit,
Position(String),
SetOption(String, Option<String>),
Stop,
Usi,
UsiNewGame,
Quit,
}
Expand description
Represents a USI command sent from the GUI.
Examples
use std::time::Duration;
use usi::{GuiCommand, ThinkParams};
let params = ThinkParams::new().btime(Duration::from_secs(1)).wtime(Duration::from_secs(2));
let cmd = GuiCommand::Go(params);
assert_eq!("go btime 1000 wtime 2000", cmd.to_string());
Variants
GameOver(GameOverKind)
Tuple Fields of GameOver
0: GameOverKind
Go(ThinkParams)
Tuple Fields of Go
0: ThinkParams
Position(String)
Tuple Fields of Position
0: String
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GuiCommand
impl Send for GuiCommand
impl Sync for GuiCommand
impl Unpin for GuiCommand
impl UnwindSafe for GuiCommand
Blanket Implementations
Mutably borrows from an owned value. Read more