pub struct Context { /* private fields */ }Expand description
Contains information about the current execution context
Implementations§
Source§impl Context
impl Context
Sourcepub const fn global(&self) -> &GlobalContext
pub const fn global(&self) -> &GlobalContext
Global context
Sourcepub const fn group(&self) -> &GroupContext
pub const fn group(&self) -> &GroupContext
Group context, is equal to GlobalContext if the call is from the global scope.
Sourcepub const fn buffer_len(&self) -> usize
pub const fn buffer_len(&self) -> usize
Returns the length in bytes of the output buffer. This is the maximum size of the data that can be returned by the extension.
Sourcepub fn callback_data<V>(
&self,
name: &str,
func: &str,
data: V,
) -> Result<(), CallbackError>where
V: IntoArma,
pub fn callback_data<V>(
&self,
name: &str,
func: &str,
data: V,
) -> Result<(), CallbackError>where
V: IntoArma,
Sends a callback with data into Arma https://community.bistudio.com/wiki/Arma_3:_Mission_Event_Handlers#ExtensionCallback
Sourcepub fn callback_null(&self, name: &str, func: &str) -> Result<(), CallbackError>
pub fn callback_null(&self, name: &str, func: &str) -> Result<(), CallbackError>
Sends a callback without data into Arma https://community.bistudio.com/wiki/Arma_3:_Mission_Event_Handlers#ExtensionCallback
Auto Trait Implementations§
impl Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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