[−][src]Enum vampirc_uci::uci::UciInfoAttribute
The representation of various info messages. For an info attribute that is not listed in the protocol specification,
the UciInfoAttribute::Any(name, value)
variant can be used.
Variants
Depth(u8)
The info depth
message.
SelDepth(u8)
The info seldepth
message.
Time(u64)
The info time
message.
Nodes(u64)
The info nodes
message.
Pv(Vec<UciMove>)
The info pv
message (best line move sequence).
MultiPv(u16)
The info pv ... multipv
message (the pv line number in a multi pv sequence).
Score
The info score ...
message.
Fields of Score
CurrMove(UciMove)
The info currmove
message (current move).
CurrMoveNum(u16)
The info currmovenum
message (current move number).
HashFull(u16)
The info hashfull
message (the occupancy of hashing tables in permills).
Nps(u64)
The info nps
message (nodes per second).
TbHits(u64)
The info tbhits
message (end-game table-base hits).
SbHits(u64)
The info sbhits
message (I guess some Shredder-specific end-game table-base stuff. I dunno, probably best to
ignore).
CpuLoad(u16)
The info cpuload
message (CPU load in permills).
String(String)
The info string
message (a string the GUI should display).
Refutation(Vec<UciMove>)
The info refutation
message (the first move is the move being refuted).
CurrLine
The info currline
message (current line being calculated on a CPU).
Fields of CurrLine
Any(String, String)
Any other info line in the format (name, value)
.
Methods
impl UciInfoAttribute
[src]
pub fn from_centipawns(cp: i32) -> UciInfoAttribute
[src]
Creates a UciInfoAttribute::Score
with the cp
attribute set to the value of the parameter and all other
fields set to None
.
pub fn from_mate(mate: i8) -> UciInfoAttribute
[src]
Creates a UciInfoAttribute::Score
with the mate
attribute set to the value of the parameter and all other
fields set to None
. A negative value indicates it is the engine that is getting mated.
pub fn get_name(&self) -> &str
[src]
Returns the name of the info attribute.
Trait Implementations
impl Serializable for UciInfoAttribute
[src]
impl PartialEq<UciInfoAttribute> for UciInfoAttribute
[src]
fn eq(&self, other: &UciInfoAttribute) -> bool
[src]
fn ne(&self, other: &UciInfoAttribute) -> bool
[src]
impl Clone for UciInfoAttribute
[src]
fn clone(&self) -> UciInfoAttribute
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for UciInfoAttribute
[src]
impl Display for UciInfoAttribute
[src]
impl Debug for UciInfoAttribute
[src]
impl Hash for UciInfoAttribute
[src]
Auto Trait Implementations
impl Send for UciInfoAttribute
impl Sync for UciInfoAttribute
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,