[][src]Enum usi::GuiCommand

pub enum GuiCommand {
    GameOver(GameOverKind),
    Go(ThinkParams),
    IsReady,
    Ponderhit,
    Position(String),
    SetOption(StringOption<String>),
    Stop,
    Usi,
    UsiNewGame,
    Quit,
}

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)Go(ThinkParams)IsReadyPonderhitPosition(String)SetOption(StringOption<String>)StopUsiUsiNewGameQuit

Trait Implementations

impl Display for GuiCommand
[src]

Auto Trait Implementations

impl Send for GuiCommand

impl Sync for GuiCommand

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]