pub struct RegionScript {
pub path: String,
/* private fields */
}Expand description
A compiled custom-region script, ready to call. Compiled once at spawn and
shared via Arc on the runtime’s context window, keyed by path.
Fields§
§path: StringThe script path as written in the blueprint - log/error context only.
Implementations§
Source§impl RegionScript
impl RegionScript
Sourcepub fn has_on_write(&self) -> bool
pub fn has_on_write(&self) -> bool
Whether the script defines on_write(ctx).
Sourcepub fn has_on_overflow(&self) -> bool
pub fn has_on_overflow(&self) -> bool
Whether the script defines on_overflow(ctx).
Trait Implementations§
Source§impl Clone for RegionScript
impl Clone for RegionScript
Source§fn clone(&self) -> RegionScript
fn clone(&self) -> RegionScript
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 RegionScript
impl !UnwindSafe for RegionScript
impl Freeze for RegionScript
impl Send for RegionScript
impl Sync for RegionScript
impl Unpin for RegionScript
impl UnsafeUnpin for RegionScript
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