pub struct BuiltinHookCall<'a> {
pub ctx: &'a HookContext<'a>,
pub data_override: Option<&'a [u8]>,
pub engine_access: &'a dyn EngineAccess,
pub now: f64,
pub provider_events_enabled: bool,
}Expand description
Invocation data passed to a built-in hook.
Built-in hooks are regular Rust code linked into the host process. They are intended for first-party hooks and appliance builds where the hook code is trusted and should not require a WASM runtime or a dynamic library file.
Fields§
§ctx: &'a HookContext<'a>§data_override: Option<&'a [u8]>§engine_access: &'a dyn EngineAccess§now: f64§provider_events_enabled: boolAuto Trait Implementations§
impl<'a> !RefUnwindSafe for BuiltinHookCall<'a>
impl<'a> !Send for BuiltinHookCall<'a>
impl<'a> !Sync for BuiltinHookCall<'a>
impl<'a> !UnwindSafe for BuiltinHookCall<'a>
impl<'a> Freeze for BuiltinHookCall<'a>
impl<'a> Unpin for BuiltinHookCall<'a>
impl<'a> UnsafeUnpin for BuiltinHookCall<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more