Skip to main content

AMX

Struct AMX 

Source
#[repr(C, packed(1))]
pub struct AMX {
Show 20 fields pub base: *mut u8, pub data: *mut u8, pub callback: extern "C" fn(*mut AMX, i32, *mut i32, *mut i32) -> i32, pub debug: extern "C" fn(*mut AMX) -> i32, pub cip: i32, pub frm: i32, pub hea: i32, pub hlw: i32, pub stk: i32, pub stp: i32, pub flags: i32, pub usertags: [i32; 4], pub userdata: [*mut c_void; 4], pub error: i32, pub paramcount: i32, pub pri: i32, pub alt: i32, pub reset_stk: i32, pub reset_hea: i32, pub sysreq_d: i32,
}
Expand description

AMX VM instance. Each AMX loaded by the server (gamemode + filterscripts) is a pointer to this struct.

Fields§

§base: *mut u8§data: *mut u8§callback: extern "C" fn(*mut AMX, i32, *mut i32, *mut i32) -> i32§debug: extern "C" fn(*mut AMX) -> i32§cip: i32§frm: i32§hea: i32§hlw: i32§stk: i32§stp: i32§flags: i32§usertags: [i32; 4]§userdata: [*mut c_void; 4]§error: i32§paramcount: i32§pri: i32§alt: i32§reset_stk: i32§reset_hea: i32§sysreq_d: i32

Auto Trait Implementations§

§

impl !Send for AMX

§

impl !Sync for AMX

§

impl Freeze for AMX

§

impl RefUnwindSafe for AMX

§

impl Unpin for AMX

§

impl UnsafeUnpin for AMX

§

impl UnwindSafe for AMX

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.