Struct actix_lua::LuaActorBuilder
source · pub struct LuaActorBuilder { /* private fields */ }
Expand description
LuaActorBuilder
creates a new LuaActor
with given Lua script.
Implementations
sourceimpl LuaActorBuilder
impl LuaActorBuilder
sourcepub fn on_started(self, filename: &str) -> Self
pub fn on_started(self, filename: &str) -> Self
create a started
hook with given lua file
sourcepub fn on_started_with_lua(self, script: &str) -> Self
pub fn on_started_with_lua(self, script: &str) -> Self
create a started
hook with given lua script
sourcepub fn on_handle_with_lua(self, script: &str) -> Self
pub fn on_handle_with_lua(self, script: &str) -> Self
handle message with given lua script
sourcepub fn on_stopped(self, filename: &str) -> Self
pub fn on_stopped(self, filename: &str) -> Self
create a stopped
hook with given lua file.
sourcepub fn on_stopped_with_lua(self, script: &str) -> Self
pub fn on_stopped_with_lua(self, script: &str) -> Self
create a stopped
hook with given lua script
Trait Implementations
sourceimpl Default for LuaActorBuilder
impl Default for LuaActorBuilder
sourcefn default() -> LuaActorBuilder
fn default() -> LuaActorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LuaActorBuilder
impl Send for LuaActorBuilder
impl Sync for LuaActorBuilder
impl Unpin for LuaActorBuilder
impl UnwindSafe for LuaActorBuilder
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