[][src]Enum vampirc_uci::uci::UciTimeControl

pub enum UciTimeControl {
    Ponder,
    Infinite,
    TimeLeft {
        white_time: Option<Duration>,
        black_time: Option<Duration>,
        white_increment: Option<Duration>,
        black_increment: Option<Duration>,
        moves_to_go: Option<u8>,
    },
    MoveTime(Duration),
}

This enum represents the possible variants of the go UCI message that deal with the chess game's time controls and the engine's thinking time.

Variants

Ponder

The go ponder message.

Infinite

The go infinite message.

TimeLeft

The information about the game's time controls.

Fields of TimeLeft

white_time: Option<Duration>

White's time on the clock, in milliseconds.

black_time: Option<Duration>

Black's time on the clock, in milliseconds.

white_increment: Option<Duration>

White's increment per move, in milliseconds.

black_increment: Option<Duration>

Black's increment per move, in milliseconds.

moves_to_go: Option<u8>

The number of moves to go to the next time control.

MoveTime(Duration)

Specifies how much time the engine should think about the move, in milliseconds.

Implementations

impl UciTimeControl[src]

pub fn time_left() -> UciTimeControl[src]

Returns a UciTimeControl::TimeLeft with all members set to None.

Trait Implementations

impl Clone for UciTimeControl[src]

impl Debug for UciTimeControl[src]

impl Eq for UciTimeControl[src]

impl Hash for UciTimeControl[src]

impl PartialEq<UciTimeControl> for UciTimeControl[src]

impl StructuralEq for UciTimeControl[src]

impl StructuralPartialEq for UciTimeControl[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.