#[repr(u16)]pub enum SystemError {
Show 16 variants
Unknown = 0,
BadOrderId = 1,
Io = 2,
BadInputLength = 3,
BadApiIndex = 4,
BadTrieKey = 5,
SnakeCapacityIsZero = 6,
BadOffset = 7,
SnakeBadLength = 8,
GeneFromHexErr = 9,
GeneIdMismatch = 10,
DeadSet = 11,
SendTimeOut = 12,
PondNoEmptySlotWasFound = 13,
TrieKeyEmpty = 14,
BadCoords = 15,
}Variants§
Unknown = 0
BadOrderId = 1
Io = 2
BadInputLength = 3
BadApiIndex = 4
BadTrieKey = 5
SnakeCapacityIsZero = 6
BadOffset = 7
SnakeBadLength = 8
GeneFromHexErr = 9
could count parse gene from hex string
GeneIdMismatch = 10
this may happen if id of gene on the disk is not the correct id
DeadSet = 11
using set for deleting aka seting alive to false without .del(…)
SendTimeOut = 12
PondNoEmptySlotWasFound = 13
TrieKeyEmpty = 14
BadCoords = 15
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 Default for SystemError
impl Default for SystemError
Source§fn default() -> SystemError
fn default() -> SystemError
Returns the “default value” for a type. Read more
Source§impl From<SystemError> for ErrorCode
impl From<SystemError> for ErrorCode
Source§fn from(value: SystemError) -> Self
fn from(value: SystemError) -> Self
Converts to this type from the input type.
Source§impl From<SystemError> for ShahError
impl From<SystemError> for ShahError
Source§fn from(value: SystemError) -> Self
fn from(value: SystemError) -> Self
Converts to this type from the input type.
Source§impl From<SystemError> for u16
impl From<SystemError> for u16
Source§fn from(value: SystemError) -> Self
fn from(value: SystemError) -> Self
Converts to this type from the input type.
Source§impl From<u16> for SystemError
impl From<u16> 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