pub struct LuaEngineOptions {
pub pool_config: LuaVmPoolConfig,
pub host_options: LuaRuntimeHostOptions,
}Expand description
Construction options used by the host to create one LuaSkills runtime engine. 宿主创建单个 LuaSkills 运行时引擎时使用的构造选项。
Fields§
§pool_config: LuaVmPoolConfigPool sizing configuration for reusable Lua virtual machines. 可复用 Lua 虚拟机池的容量配置。
host_options: LuaRuntimeHostOptionsHost-owned runtime paths and external library locations. 宿主拥有的运行时路径与外部动态库位置配置。
Implementations§
Source§impl LuaEngineOptions
impl LuaEngineOptions
Sourcepub fn new(
pool_config: LuaVmPoolConfig,
host_options: LuaRuntimeHostOptions,
) -> Self
pub fn new( pool_config: LuaVmPoolConfig, host_options: LuaRuntimeHostOptions, ) -> Self
Build engine options from one pool config and one host option object. 基于一份虚拟机池配置和一份宿主选项对象构造引擎选项。
Trait Implementations§
Source§impl Clone for LuaEngineOptions
impl Clone for LuaEngineOptions
Source§fn clone(&self) -> LuaEngineOptions
fn clone(&self) -> LuaEngineOptions
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 moreSource§impl Debug for LuaEngineOptions
impl Debug for LuaEngineOptions
Source§impl<'de> Deserialize<'de> for LuaEngineOptions
impl<'de> Deserialize<'de> for LuaEngineOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LuaEngineOptions
impl RefUnwindSafe for LuaEngineOptions
impl Send for LuaEngineOptions
impl Sync for LuaEngineOptions
impl Unpin for LuaEngineOptions
impl UnsafeUnpin for LuaEngineOptions
impl UnwindSafe for LuaEngineOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request