pub struct Context { /* private fields */ }Expand description
Contains information about the current execution context
Implementations
sourceimpl Context
impl Context
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<V>(&self, name: &str, func: &str, data: Option<V>) where
V: IntoArma,
👎Deprecated since 1.8.0: Use callback_data instead. This function may be removed in future versions.
pub fn callback<V>(&self, name: &str, func: &str, data: Option<V>) where
V: IntoArma,
Use callback_data instead. This function may be removed in future versions.
Sends a callback with data into Arma https://community.bistudio.com/wiki/Arma_3:_Mission_Event_Handlers#ExtensionCallback
sourcepub fn callback_data<V>(&self, name: &str, func: &str, data: V) where
V: IntoArma,
pub fn callback_data<V>(&self, name: &str, func: &str, data: V) 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)
pub fn callback_null(&self, name: &str, func: &str)
Sends a callback without data into Arma https://community.bistudio.com/wiki/Arma_3:_Mission_Event_Handlers#ExtensionCallback
Auto Trait Implementations
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more