[][src]Struct lichessbot::lichessbot::BotState

pub struct BotState {
    pub current_fen: Option<String>,
    pub engine_thinking: bool,
    pub streaming: bool,
}

bot state

Fields

current_fen: Option<String>

current fen

engine_thinking: bool

engine thinking

streaming: bool

streaming

Implementations

impl BotState[src]

bot state implementation

pub fn default() -> BotState[src]

pub fn set_current_fen(mut self: Self, fen: Option<String>) -> BotState[src]

set current fen

pub fn set_engine_thinking(mut self: Self, engine_thinking: bool) -> BotState[src]

set engine thinking

pub fn set_streaming(mut self: Self, streaming: bool) -> BotState[src]

set streaming

Trait Implementations

impl Clone for BotState[src]

impl Debug for BotState[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,