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),
}Expand description
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
MoveTime(Duration)
Specifies how much time the engine should think about the move, in milliseconds.
Implementations§
Source§impl UciTimeControl
impl UciTimeControl
Sourcepub fn time_left() -> UciTimeControl
pub fn time_left() -> UciTimeControl
Returns a UciTimeControl::TimeLeft with all members set to None.
Trait Implementations§
Source§impl Clone for UciTimeControl
impl Clone for UciTimeControl
Source§fn clone(&self) -> UciTimeControl
fn clone(&self) -> UciTimeControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UciTimeControl
impl Debug for UciTimeControl
Source§impl Hash for UciTimeControl
impl Hash for UciTimeControl
Source§impl PartialEq for UciTimeControl
impl PartialEq for UciTimeControl
impl Eq for UciTimeControl
impl StructuralPartialEq for UciTimeControl
Auto Trait Implementations§
impl Freeze for UciTimeControl
impl RefUnwindSafe for UciTimeControl
impl Send for UciTimeControl
impl Sync for UciTimeControl
impl Unpin for UciTimeControl
impl UnwindSafe for UciTimeControl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more