#[repr(i32)]pub enum SystemError {
Show 27 variants
Success = 1,
UnknownFault = -1,
ZeroCards = -2,
TargetTooHigh = -3,
DuplicateCards = -4,
NegativeTarget = -5,
InvalidTarget = -7,
LowSolvingParameter = -8,
HighSolvingParameter = -9,
TooManyCards = -10,
CurrentSuitOrRank = -12,
PlayedCard = -13,
CardCount = -14,
ThreadIndex = -15,
NegativeModeParameter = -16,
HighModeParameter = -17,
Trump = -18,
First = -19,
AnalysePlay = -98,
PBN = -99,
TooManyBoards = -101,
ThreadCreate = -102,
ThreadWait = -103,
ThreadMissing = -104,
NoSuit = -201,
TooManyTables = -202,
ChunkSize = -301,
}Expand description
Errors that occurred in dds_bridge_sys
Variants§
Success = 1
Success, no error
UnknownFault = -1
A general or unknown error
ZeroCards = -2
Zero cards
TargetTooHigh = -3
Target exceeds number of tricks
DuplicateCards = -4
Duplicate cards
NegativeTarget = -5
Target tricks < 0
InvalidTarget = -7
Target tricks > 13
LowSolvingParameter = -8
Solving parameter < 1
HighSolvingParameter = -9
Solving parameter > 3
TooManyCards = -10
Too many cards
CurrentSuitOrRank = -12
Wrong current suit or rank
PlayedCard = -13
Wrong played card
CardCount = -14
Wrong card count
ThreadIndex = -15
Wrong thread index
NegativeModeParameter = -16
Mode parameter < 0
HighModeParameter = -17
Mode parameter > 2
Trump = -18
Wrong trump suit
First = -19
Wrong “first”
AnalysePlay = -98
AnalysePlay*() family of functions.
(a) Less than 0 or more than 52 cards supplied.
(b) Invalid suit or rank supplied.
(c) A played card is not held by the right player.
PBN = -99
Invalid PBN
TooManyBoards = -101
Too many boards
ThreadCreate = -102
Cannot create a new thread
ThreadWait = -103
Failed to wait for a thread
ThreadMissing = -104
Missing threading system
NoSuit = -201
No suit to solve
TooManyTables = -202
Too many tables
ChunkSize = -301
Invalid chunk size
Implementations§
Source§impl SystemError
impl SystemError
Trait Implementations§
Source§impl Clone for SystemError
impl Clone for SystemError
Source§fn clone(&self) -> SystemError
fn clone(&self) -> SystemError
Returns a duplicate 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 SystemError
impl Debug for SystemError
Source§impl Display for SystemError
impl Display for SystemError
Source§impl Error for SystemError
impl Error for SystemError
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<SystemError> for Error
impl From<SystemError> for Error
Source§fn from(err: SystemError) -> Self
fn from(err: SystemError) -> Self
Converts to this type from the input type.
Source§impl Hash for SystemError
impl Hash for SystemError
Source§impl PartialEq for SystemError
impl PartialEq for SystemError
impl Copy for SystemError
impl Eq for SystemError
impl StructuralPartialEq for SystemError
Auto Trait Implementations§
impl Freeze for SystemError
impl RefUnwindSafe for SystemError
impl Send for SystemError
impl Sync for SystemError
impl Unpin for SystemError
impl UnwindSafe for SystemError
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