pub struct LuaActorBuilder { /* private fields */ }
Expand description
LuaActorBuilder
creates a new LuaActor
with given Lua script.
Implementations§
Source§impl 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§
Source§impl Default for LuaActorBuilder
impl Default for LuaActorBuilder
Source§fn default() -> LuaActorBuilder
fn default() -> LuaActorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaActorBuilder
impl RefUnwindSafe for LuaActorBuilder
impl Send for LuaActorBuilder
impl Sync for LuaActorBuilder
impl Unpin for LuaActorBuilder
impl UnwindSafe for LuaActorBuilder
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