pub struct AnalyseConfig {
pub stockfish: Option<String>,
pub depth: u32,
pub threads: u32,
pub hash_mb: u32,
pub skip_plies: usize,
pub model: Option<String>,
pub flag_score: Option<f64>,
pub min_moves: Option<usize>,
pub app_depth: u8,
pub app_nodes: u64,
pub app_net: Option<String>,
pub once: bool,
}Expand description
Settings for the fair-play worker (open-chess analyse).
Fields§
§stockfish: Option<String>The UCI engine (Stockfish).
depth: u32Search depth per position.
threads: u32Engine threads.
hash_mb: u32Engine hash, MiB.
skip_plies: usizePlies at the start left out of screening (opening theory).
model: Option<String>The screening model: how the fair-play signals turn into a score
and a flag (chess_fairplay::Model, as JSON). Either a path to a
JSON file or the JSON itself (handy as a secret). Keep a tuned
model private: its numbers tell people what screening looks for.
Unset: an untuned example model, and a warning.
flag_score: Option<f64>Overrides the model’s flag score (0–100).
min_moves: Option<usize>Overrides the model’s fewest screened moves before a game can be flagged.
app_depth: u8The training app’s engine settings, for the app fingerprint (the app’s “Normal” search). Keep in step with web/chess/app.js.
app_nodes: u64§app_net: Option<String>The NNUE weight file the app ships (web/chess/nets/default.nnue), if it ships one, so the fingerprint uses the same evaluation.
once: boolAnalyse one game and exit (for testing).
Implementations§
Trait Implementations§
Source§impl Args for AnalyseConfig
impl Args for AnalyseConfig
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for AnalyseConfig
impl Clone for AnalyseConfig
Source§impl Debug for AnalyseConfig
impl Debug for AnalyseConfig
Source§impl FromArgMatches for AnalyseConfig
impl FromArgMatches for AnalyseConfig
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Auto Trait Implementations§
impl Freeze for AnalyseConfig
impl RefUnwindSafe for AnalyseConfig
impl Send for AnalyseConfig
impl Sync for AnalyseConfig
impl Unpin for AnalyseConfig
impl UnsafeUnpin for AnalyseConfig
impl UnwindSafe for AnalyseConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more