pub struct ScriptManager { /* private fields */ }Expand description
Lua scripting manager
Implementations§
Source§impl ScriptManager
impl ScriptManager
Sourcepub async fn eval<T>(
&self,
script: &str,
options: ScriptEvalOptions,
) -> Result<ScriptEvalResponse<T>>where
T: DeserializeOwned,
pub async fn eval<T>(
&self,
script: &str,
options: ScriptEvalOptions,
) -> Result<ScriptEvalResponse<T>>where
T: DeserializeOwned,
Execute a Lua script using EVAL
Sourcepub async fn evalsha<T>(
&self,
sha1: &str,
options: ScriptEvalOptions,
) -> Result<ScriptEvalResponse<T>>where
T: DeserializeOwned,
pub async fn evalsha<T>(
&self,
sha1: &str,
options: ScriptEvalOptions,
) -> Result<ScriptEvalResponse<T>>where
T: DeserializeOwned,
Execute a cached script using SHA1 hash
Sourcepub async fn load(&self, script: &str) -> Result<String>
pub async fn load(&self, script: &str) -> Result<String>
Load a script into the cache and return its SHA1 hash
Trait Implementations§
Source§impl Clone for ScriptManager
impl Clone for ScriptManager
Source§fn clone(&self) -> ScriptManager
fn clone(&self) -> ScriptManager
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for ScriptManager
impl !RefUnwindSafe for ScriptManager
impl Send for ScriptManager
impl Sync for ScriptManager
impl Unpin for ScriptManager
impl UnsafeUnpin for ScriptManager
impl !UnwindSafe for ScriptManager
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