Enum actix_lua::LuaMessage
source · pub enum LuaMessage {
String(String),
Integer(i64),
Number(f64),
Boolean(bool),
Nil,
Table(HashMap<String, LuaMessage>),
ThreadYield(String),
}
Variants
String(String)
Integer(i64)
Number(f64)
Boolean(bool)
Nil
Table(HashMap<String, LuaMessage>)
ThreadYield(String)
Trait Implementations
sourceimpl Clone for LuaMessage
impl Clone for LuaMessage
sourcefn clone(&self) -> LuaMessage
fn clone(&self) -> LuaMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LuaMessage
impl Debug for LuaMessage
sourceimpl<'l> From<&'l str> for LuaMessage
impl<'l> From<&'l str> for LuaMessage
sourceimpl From<HashMap<String, LuaMessage, RandomState>> for LuaMessage
impl From<HashMap<String, LuaMessage, RandomState>> for LuaMessage
sourcefn from(s: HashMap<String, LuaMessage>) -> Self
fn from(s: HashMap<String, LuaMessage>) -> Self
Converts to this type from the input type.
sourceimpl From<String> for LuaMessage
impl From<String> for LuaMessage
sourceimpl From<bool> for LuaMessage
impl From<bool> for LuaMessage
sourceimpl From<f32> for LuaMessage
impl From<f32> for LuaMessage
sourceimpl From<f64> for LuaMessage
impl From<f64> for LuaMessage
sourceimpl From<i16> for LuaMessage
impl From<i16> for LuaMessage
sourceimpl From<i32> for LuaMessage
impl From<i32> for LuaMessage
sourceimpl From<i64> for LuaMessage
impl From<i64> for LuaMessage
sourceimpl From<i8> for LuaMessage
impl From<i8> for LuaMessage
sourceimpl From<isize> for LuaMessage
impl From<isize> for LuaMessage
sourceimpl From<u16> for LuaMessage
impl From<u16> for LuaMessage
sourceimpl From<u32> for LuaMessage
impl From<u32> for LuaMessage
sourceimpl From<u8> for LuaMessage
impl From<u8> for LuaMessage
sourceimpl From<usize> for LuaMessage
impl From<usize> for LuaMessage
sourceimpl<'lua> FromLua<'lua> for LuaMessage
impl<'lua> FromLua<'lua> for LuaMessage
sourceimpl Handler<LuaMessage> for LuaActor
impl Handler<LuaMessage> for LuaActor
type Result = LuaMessage
type Result = LuaMessage
The type of value that this handle will return
sourcefn handle(&mut self, msg: LuaMessage, ctx: &mut Context<Self>) -> Self::Result
fn handle(&mut self, msg: LuaMessage, ctx: &mut Context<Self>) -> Self::Result
Method is called for every message received by this Actor
sourceimpl Message for LuaMessage
impl Message for LuaMessage
type Result = LuaMessage
type Result = LuaMessage
The type of value that this message will resolved with if it is
successful. Read more
sourceimpl<A, M> MessageResponse<A, M> for LuaMessagewhere
A: Actor,
M: Message<Result = LuaMessage>,
impl<A, M> MessageResponse<A, M> for LuaMessagewhere
A: Actor,
M: Message<Result = LuaMessage>,
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>)
sourceimpl PartialEq<LuaMessage> for LuaMessage
impl PartialEq<LuaMessage> for LuaMessage
sourcefn eq(&self, other: &LuaMessage) -> bool
fn eq(&self, other: &LuaMessage) -> bool
sourceimpl<'lua> ToLua<'lua> for LuaMessage
impl<'lua> ToLua<'lua> for LuaMessage
impl StructuralPartialEq for LuaMessage
Auto Trait Implementations
impl RefUnwindSafe for LuaMessage
impl Send for LuaMessage
impl Sync for LuaMessage
impl Unpin for LuaMessage
impl UnwindSafe for LuaMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for Twhere
T: FromLua<'lua>,
sourcefn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more
sourceimpl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
impl<'lua, T> ToLuaMulti<'lua> for Twhere
T: ToLua<'lua>,
sourcefn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
fn to_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.