pub struct HookScript {
pub path: String,
/* private fields */
}Expand description
A compiled stage-hook script, ready to call.
Compiled once at spawn and shared via Arc, keyed by the path as written in
the blueprint - the same lifecycle a crate::region_hook::RegionScript
has, so one file backing several hooks is compiled once.
Fields§
§path: StringThe script path as written in the blueprint - log/error context only.
Implementations§
Trait Implementations§
Source§impl Clone for HookScript
impl Clone for HookScript
Source§fn clone(&self) -> HookScript
fn clone(&self) -> HookScript
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HookScript
impl !UnwindSafe for HookScript
impl Freeze for HookScript
impl Send for HookScript
impl Sync for HookScript
impl Unpin for HookScript
impl UnsafeUnpin for HookScript
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