pub enum TimecatError {
Show 37 variants
UnknownCommand,
NoInput,
NotImplemented,
EngineNotRunning,
BadFen {
fen: String,
},
InvalidDepth {
depth: Depth,
},
IllegalMove {
valid_or_null_move: ValidOrNullMove,
board_fen: String,
},
ColoredOutputUnchanged {
b: bool,
},
UCIModeUnchanged,
ConsoleModeUnchanged,
EmptyStack,
BestMoveNotFound {
fen: String,
},
NullMoveInCheck {
fen: String,
},
WTimeNotMentioned,
BTimeNotMentioned,
GameAlreadyOver,
UnknownDebugCommand {
command: String,
},
InvalidSpinValue {
name: String,
value: Spin,
min: Spin,
max: Spin,
},
InvalidMoveStructGeneration,
InvalidSanOrLanMove {
valid_or_null_move: ValidOrNullMove,
fen: String,
},
InvalidSanMoveString {
s: String,
},
InvalidLanMoveString {
s: String,
},
InvalidMoveString {
s: String,
},
InvalidRankString {
s: String,
},
InvalidFileString {
s: String,
},
InvalidSquareString {
s: String,
},
InvalidPieceTypeString {
s: String,
},
InvalidPieceString {
s: String,
},
InvalidUciMoveString {
s: String,
},
InvalidBoardPosition {
position: ChessPosition,
},
InvalidGoCommand {
s: String,
},
IllegalSearchMoves {
illegal_moves: Vec<Move>,
},
FeatureNotEnabled {
s: String,
},
BadNNUEFile,
BadPolyglotFile,
PolyglotTableParseError,
CustomError {
err_msg: String,
},
}Variants§
UnknownCommand
NoInput
NotImplemented
EngineNotRunning
BadFen
InvalidDepth
IllegalMove
ColoredOutputUnchanged
UCIModeUnchanged
ConsoleModeUnchanged
EmptyStack
BestMoveNotFound
NullMoveInCheck
WTimeNotMentioned
BTimeNotMentioned
GameAlreadyOver
UnknownDebugCommand
InvalidSpinValue
InvalidMoveStructGeneration
InvalidSanOrLanMove
InvalidSanMoveString
InvalidLanMoveString
InvalidMoveString
InvalidRankString
InvalidFileString
InvalidSquareString
InvalidPieceTypeString
InvalidPieceString
InvalidUciMoveString
InvalidBoardPosition
Fields
§
position: ChessPositionInvalidGoCommand
IllegalSearchMoves
FeatureNotEnabled
BadNNUEFile
BadPolyglotFile
PolyglotTableParseError
CustomError
Implementations§
Source§impl TimecatError
impl TimecatError
pub fn get_custom_error<E: Error>(error: E) -> Self
Source§impl TimecatError
impl TimecatError
pub fn stringify_with_optional_raw_input( &self, optional_raw_input: Option<&str>, ) -> String
Trait Implementations§
Source§impl Clone for TimecatError
impl Clone for TimecatError
Source§fn clone(&self) -> TimecatError
fn clone(&self) -> TimecatError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimecatError
impl Debug for TimecatError
Source§impl<'de> Deserialize<'de> for TimecatError
impl<'de> Deserialize<'de> for TimecatError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TimecatError
impl Display for TimecatError
Source§impl Error for TimecatError
impl Error for TimecatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&TimecatError> for TimecatError
impl From<&TimecatError> for TimecatError
Source§impl From<&str> for TimecatError
impl From<&str> for TimecatError
Source§impl From<Error> for TimecatError
impl From<Error> for TimecatError
Source§impl From<ParseBoolError> for TimecatError
impl From<ParseBoolError> for TimecatError
Source§fn from(error: ParseBoolError) -> Self
fn from(error: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for TimecatError
impl From<ParseIntError> for TimecatError
Source§fn from(error: ParseIntError) -> Self
fn from(error: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<String> for TimecatError
impl From<String> for TimecatError
Source§impl From<TimecatError> for PyErr
impl From<TimecatError> for PyErr
Source§fn from(err: TimecatError) -> PyErr
fn from(err: TimecatError) -> PyErr
Converts to this type from the input type.
Source§impl From<TimecatError> for String
impl From<TimecatError> for String
Source§fn from(error: TimecatError) -> Self
fn from(error: TimecatError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for TimecatError
impl From<TryFromSliceError> for TimecatError
Source§fn from(error: TryFromSliceError) -> Self
fn from(error: TryFromSliceError) -> Self
Converts to this type from the input type.
Source§impl Hash for TimecatError
impl Hash for TimecatError
Source§impl PartialEq for TimecatError
impl PartialEq for TimecatError
Source§impl Serialize for TimecatError
impl Serialize for TimecatError
impl Eq for TimecatError
impl StructuralPartialEq for TimecatError
Auto Trait Implementations§
impl Freeze for TimecatError
impl RefUnwindSafe for TimecatError
impl Send for TimecatError
impl Sync for TimecatError
impl Unpin for TimecatError
impl UnwindSafe for TimecatError
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomColorize for Twhere
T: ToString,
impl<T> CustomColorize for Twhere
T: ToString,
fn colorize( &self, style_functions: &[fn(_: ColoredString) -> ColoredString], ) -> String
Source§impl<T> FromQuery for Twhere
T: DeserializeOwned,
impl<T> FromQuery for Twhere
T: DeserializeOwned,
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> ⓘ
Converts
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> ⓘ
Converts
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