pub enum GuiCommand {
GameOver(GameOverKind),
Go(ThinkParams),
IsReady,
Ponderhit,
Position(String),
SetOption(String, Option<String>),
Stop,
Usi,
UsiNewGame,
Quit,
}
Represents a USI command sent from the GUI.
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());
Formats the value using the given formatter. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static