[][src]Struct lichessbot::lichessbot::LichessBot

pub struct LichessBot {
    pub lichess: Lichess,
    pub bot_name: String,
    pub engine_name: Option<String>,
    pub uci_options: HashMap<String, String>,
    pub enable_classical: bool,
    pub enable_rapid: bool,
    pub disable_blitz: bool,
    pub disable_bullet: bool,
    pub enable_ultrabullet: bool,
    pub enable_casual: bool,
    pub disable_rated: bool,
    pub book: Book,
    pub state: Arc<Mutex<BotState>>,
}

lichess bot

Fields

lichess: Lichess

lichess client

bot_name: String

lichess username of bot

engine_name: Option<String>

engine executable name ( optional )

uci_options: HashMap<String, String>

uci options

enable_classical: bool

enable classical

enable_rapid: bool

enable rapid

disable_blitz: bool

disable blitz

disable_bullet: bool

disable bullet

enable_ultrabullet: bool

enable ultrabullet

enable_casual: bool

enable casual

disable_rated: bool

disable rated

book: Book

book

state: Arc<Mutex<BotState>>

state

Implementations

impl LichessBot[src]

pub fn enable_classical(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

pub fn enable_rapid(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

pub fn disable_blitz(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

pub fn disable_bullet(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

pub fn enable_ultrabullet(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

pub fn enable_casual(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

pub fn disable_rated(mut self: Self, value: bool) -> LichessBot[src]

create new lichess bot

impl LichessBot[src]

lichess bot implementation

pub fn new() -> LichessBot[src]

create new lichess bot

pub fn max_book_depth<T>(mut self: Self, max_book_depth: T) -> LichessBot where
    T: Display
[src]

set max book depth

pub fn uci_opt<K, V>(mut self: Self, key: K, value: V) -> LichessBot where
    K: Display,
    V: Display
[src]

add uci option

pub async fn stream(&'static mut self) -> (Sender<String>, Receiver<String>)[src]

stream

pub async fn set_state(&self, state: BotState)[src]

set state

pub async fn get_state(&self) -> BotState[src]

get state

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,