[−][src]Struct rlua::prelude::LuaHookTriggers
Determines when a hook function will be called by Lua.
Fields
on_calls: bool
Before a function call.
on_returns: bool
When Lua returns from a function.
every_line: bool
Before executing a new line, or returning from a function call.
every_nth_instruction: Option<u32>
After a certain number of VM instructions have been executed. When set to Some(count)
,
count
is the number of VM instructions to execute before calling the hook.
Performance
Setting this option to a low value can incur a very high overhead.
Trait Implementations
impl Clone for HookTriggers
[src]
fn clone(&self) -> HookTriggers
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for HookTriggers
[src]
impl Default for HookTriggers
[src]
fn default() -> HookTriggers
[src]
impl Debug for HookTriggers
[src]
Auto Trait Implementations
impl Send for HookTriggers
impl Sync for HookTriggers
impl Unpin for HookTriggers
impl UnwindSafe for HookTriggers
impl RefUnwindSafe for HookTriggers
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,