pub struct RunLuaBuilder<'a, S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with _build()
.
Implementations§
Source§impl<'a, S: State> RunLuaBuilder<'a, S>
impl<'a, S: State> RunLuaBuilder<'a, S>
Sourcepub fn root(self, value: &'a Path) -> RunLuaBuilder<'a, SetRoot<S>>where
S::Root: IsUnset,
pub fn root(self, value: &'a Path) -> RunLuaBuilder<'a, SetRoot<S>>where
S::Root: IsUnset,
Required.
Sourcepub fn tree(self, value: &'a Tree) -> RunLuaBuilder<'a, SetTree<S>>where
S::Tree: IsUnset,
pub fn tree(self, value: &'a Tree) -> RunLuaBuilder<'a, SetTree<S>>where
S::Tree: IsUnset,
Required.
Sourcepub fn config(self, value: &'a Config) -> RunLuaBuilder<'a, SetConfig<S>>where
S::Config: IsUnset,
pub fn config(self, value: &'a Config) -> RunLuaBuilder<'a, SetConfig<S>>where
S::Config: IsUnset,
Required.
Sourcepub fn lua_cmd(self, value: LuaBinary) -> RunLuaBuilder<'a, SetLuaCmd<S>>where
S::LuaCmd: IsUnset,
pub fn lua_cmd(self, value: LuaBinary) -> RunLuaBuilder<'a, SetLuaCmd<S>>where
S::LuaCmd: IsUnset,
Required.
Sourcepub fn args(self, value: &'a Vec<String>) -> RunLuaBuilder<'a, SetArgs<S>>where
S::Args: IsUnset,
pub fn args(self, value: &'a Vec<String>) -> RunLuaBuilder<'a, SetArgs<S>>where
S::Args: IsUnset,
Required.
Sourcepub fn prepend_test_paths(
self,
value: bool,
) -> RunLuaBuilder<'a, SetPrependTestPaths<S>>where
S::PrependTestPaths: IsUnset,
pub fn prepend_test_paths(
self,
value: bool,
) -> RunLuaBuilder<'a, SetPrependTestPaths<S>>where
S::PrependTestPaths: IsUnset,
Sourcepub fn maybe_prepend_test_paths(
self,
value: Option<bool>,
) -> RunLuaBuilder<'a, SetPrependTestPaths<S>>where
S::PrependTestPaths: IsUnset,
pub fn maybe_prepend_test_paths(
self,
value: Option<bool>,
) -> RunLuaBuilder<'a, SetPrependTestPaths<S>>where
S::PrependTestPaths: IsUnset,
Sourcepub fn prepend_build_paths(
self,
value: bool,
) -> RunLuaBuilder<'a, SetPrependBuildPaths<S>>where
S::PrependBuildPaths: IsUnset,
pub fn prepend_build_paths(
self,
value: bool,
) -> RunLuaBuilder<'a, SetPrependBuildPaths<S>>where
S::PrependBuildPaths: IsUnset,
Sourcepub fn maybe_prepend_build_paths(
self,
value: Option<bool>,
) -> RunLuaBuilder<'a, SetPrependBuildPaths<S>>where
S::PrependBuildPaths: IsUnset,
pub fn maybe_prepend_build_paths(
self,
value: Option<bool>,
) -> RunLuaBuilder<'a, SetPrependBuildPaths<S>>where
S::PrependBuildPaths: IsUnset,
Sourcepub fn disable_loader(
self,
value: bool,
) -> RunLuaBuilder<'a, SetDisableLoader<S>>where
S::DisableLoader: IsUnset,
pub fn disable_loader(
self,
value: bool,
) -> RunLuaBuilder<'a, SetDisableLoader<S>>where
S::DisableLoader: IsUnset,
Sourcepub fn maybe_disable_loader(
self,
value: Option<bool>,
) -> RunLuaBuilder<'a, SetDisableLoader<S>>where
S::DisableLoader: IsUnset,
pub fn maybe_disable_loader(
self,
value: Option<bool>,
) -> RunLuaBuilder<'a, SetDisableLoader<S>>where
S::DisableLoader: IsUnset,
Sourcepub fn lua_init(self, value: String) -> RunLuaBuilder<'a, SetLuaInit<S>>where
S::LuaInit: IsUnset,
pub fn lua_init(self, value: String) -> RunLuaBuilder<'a, SetLuaInit<S>>where
S::LuaInit: IsUnset,
Sourcepub fn maybe_lua_init(
self,
value: Option<String>,
) -> RunLuaBuilder<'a, SetLuaInit<S>>where
S::LuaInit: IsUnset,
pub fn maybe_lua_init(
self,
value: Option<String>,
) -> RunLuaBuilder<'a, SetLuaInit<S>>where
S::LuaInit: IsUnset,
Sourcepub fn welcome_message(
self,
value: String,
) -> RunLuaBuilder<'a, SetWelcomeMessage<S>>where
S::WelcomeMessage: IsUnset,
pub fn welcome_message(
self,
value: String,
) -> RunLuaBuilder<'a, SetWelcomeMessage<S>>where
S::WelcomeMessage: IsUnset,
Sourcepub fn maybe_welcome_message(
self,
value: Option<String>,
) -> RunLuaBuilder<'a, SetWelcomeMessage<S>>where
S::WelcomeMessage: IsUnset,
pub fn maybe_welcome_message(
self,
value: Option<String>,
) -> RunLuaBuilder<'a, SetWelcomeMessage<S>>where
S::WelcomeMessage: IsUnset,
Source§impl<State> RunLuaBuilder<'_, State>where
State: State + IsComplete,
impl<State> RunLuaBuilder<'_, State>where
State: State + IsComplete,
pub async fn run_lua(self) -> Result<(), RunLuaError>
Auto Trait Implementations§
impl<'a, S> Freeze for RunLuaBuilder<'a, S>
impl<'a, S> RefUnwindSafe for RunLuaBuilder<'a, S>
impl<'a, S> Send for RunLuaBuilder<'a, S>
impl<'a, S> Sync for RunLuaBuilder<'a, S>
impl<'a, S> Unpin for RunLuaBuilder<'a, S>
impl<'a, S> UnwindSafe for RunLuaBuilder<'a, S>
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
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 more