pub enum AmxError {
Show 27 variants
Exit = 1,
Assert = 2,
StackError = 3,
Bounds = 4,
MemoryAccess = 5,
InvalidInstruction = 6,
StackLow = 7,
HeapLow = 8,
Callback = 9,
Native = 10,
Divide = 11,
Sleep = 12,
InvalidState = 13,
Memory = 16,
Format = 17,
Version = 18,
NotFound = 19,
Index = 20,
Debug = 21,
Init = 22,
UserData = 23,
InitJit = 24,
Params = 25,
Domain = 26,
General = 27,
Overlay = 28,
Unknown = 29,
}Expand description
Error returned by calls to SA-MP amx_* functions.
Built via AmxError::from(code) from the i32 returned by the FFI;
implements Display with English messages equivalent to the original C.
Variants§
Exit = 1
Assert = 2
StackError = 3
Bounds = 4
MemoryAccess = 5
InvalidInstruction = 6
StackLow = 7
HeapLow = 8
Callback = 9
Native = 10
Divide = 11
Sleep = 12
InvalidState = 13
Memory = 16
Format = 17
Version = 18
NotFound = 19
Index = 20
Debug = 21
Init = 22
UserData = 23
InitJit = 24
Params = 25
Domain = 26
General = 27
Overlay = 28
Unknown = 29
Trait Implementations§
Source§impl Error for AmxError
impl Error for AmxError
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()
Auto Trait Implementations§
impl Freeze for AmxError
impl RefUnwindSafe for AmxError
impl Send for AmxError
impl Sync for AmxError
impl Unpin for AmxError
impl UnsafeUnpin for AmxError
impl UnwindSafe for AmxError
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