Struct rscript::Script[][src]

pub struct Script { /* fields omitted */ }
Expand description

A script abstraction

Implementations

Returns the script metadata

Activate a script, inactive scripts will not react to hooks

Deactivate a script, inactive scripts will not react to hooks

Query the script state

Check if a script is listening for a hook

Trigger a hook on the script, this disregards the script state as in the hook will be triggered even if the script is inactive
If the script is not listening for the specified hook, an error will be returned

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.