[−][src]Struct lichessbot::lichessbot::LichessBot
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]
T: Display,
set max book depth
pub fn uci_opt<K, V>(mut self: Self, key: K, value: V) -> LichessBot where
K: Display,
V: Display,
[src]
K: Display,
V: Display,
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
impl !RefUnwindSafe for LichessBot
[src]
impl Send for LichessBot
[src]
impl Sync for LichessBot
[src]
impl Unpin for LichessBot
[src]
impl !UnwindSafe for LichessBot
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,