[−][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.
The info pv
message (best line move sequence).
MultiPv(u16)
The info pv ... multipv
message (the pv line number in a multi pv sequence).
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).
The info refutation
message (the first move is the move being refuted).
The info currline
message (current line being calculated on a CPU).
Fields of CurrLine
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 Clone for UciInfoAttribute
[src]
fn clone(&self) -> UciInfoAttribute
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UciInfoAttribute
[src]
impl Display for UciInfoAttribute
[src]
impl Eq for UciInfoAttribute
[src]
impl Hash for UciInfoAttribute
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<UciInfoAttribute> for UciInfoAttribute
[src]
fn eq(&self, other: &UciInfoAttribute) -> bool
[src]
fn ne(&self, other: &UciInfoAttribute) -> bool
[src]
impl Serializable for UciInfoAttribute
[src]
impl StructuralEq for UciInfoAttribute
[src]
impl StructuralPartialEq for UciInfoAttribute
[src]
Auto Trait Implementations
impl RefUnwindSafe for UciInfoAttribute
impl Send for UciInfoAttribute
impl Sync for UciInfoAttribute
impl Unpin for UciInfoAttribute
impl UnwindSafe for UciInfoAttribute
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,