Struct tdengine::LuaEngine
[−]
[src]
pub struct LuaEngine { /* fields omitted */ }
Methods
impl LuaEngine
[src]
fn instance() -> &'static mut LuaEngine
fn new(lua: Lua) -> LuaEngine
fn get_lua(&mut self) -> &mut Lua
fn execute_lua(&mut self) -> bool
fn apply_new_connect(
&mut self,
cookie: u32,
new_fd: i32,
client_ip: String,
server_port: u16
)
&mut self,
cookie: u32,
new_fd: i32,
client_ip: String,
server_port: u16
)
fn apply_lost_connect(&mut self, lost_fd: i32)
fn apply_db_result(
&mut self,
cookie: u32,
ret: i32,
err_msg: Option<String>,
net_msg: Option<NetMsg>
)
&mut self,
cookie: u32,
ret: i32,
err_msg: Option<String>,
net_msg: Option<NetMsg>
)
fn apply_redis_result(
&mut self,
cookie: u32,
result: Option<RedisResult<Value>>
)
&mut self,
cookie: u32,
result: Option<RedisResult<Value>>
)
fn apply_message(&mut self, fd: i32, net_msg: NetMsg)
fn apply_exec_string(&mut self, func_str: String)
fn apply_args_func(&mut self, func: String, args: Vec<String>)
fn execute_new_connect(
&mut self,
cookie: u32,
new_fd: i32,
client_ip: String,
server_port: u16
) -> i32
&mut self,
cookie: u32,
new_fd: i32,
client_ip: String,
server_port: u16
) -> i32
fn execute_lost_connect(&mut self, lost_fd: i32) -> i32
fn execute_db_result(
&mut self,
cookie: u32,
ret: i32,
err_msg: Option<String>,
net_msg: Option<NetMsg>
) -> i32
&mut self,
cookie: u32,
ret: i32,
err_msg: Option<String>,
net_msg: Option<NetMsg>
) -> i32
fn execute_redis_result(
&mut self,
cookie: u32,
result: Option<RedisResult<Value>>
) -> i32
&mut self,
cookie: u32,
result: Option<RedisResult<Value>>
) -> i32