Struct hapi_rs::session::SessionOptionsBuilder
source · pub struct SessionOptionsBuilder { /* private fields */ }
Expand description
A build for SessionOptions.
Implementations§
source§impl SessionOptionsBuilder
impl SessionOptionsBuilder
sourcepub fn houdini_env_files<I>(self, files: I) -> Selfwhere
I: IntoIterator,
I::Item: AsRef<str>,
pub fn houdini_env_files<I>(self, files: I) -> Selfwhere
I: IntoIterator,
I::Item: AsRef<str>,
A list of Houdini environment file the Engine will load environment from.
sourcepub fn env_variables<I, K, V>(self, variables: I) -> Selfwhere
I: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<String>,
pub fn env_variables<I, K, V>(self, variables: I) -> Selfwhere
I: IntoIterator<Item = (K, V)>,
K: Into<String>,
V: Into<String>,
Set the server environment variables. See also Session::set_server_var
.
The difference is this method writes out a temp file with the variables and
implicitly pass it to the engine (as if Self::houdini_env_files
was used.
sourcepub fn otl_search_paths<I>(self, paths: I) -> Selfwhere
I: IntoIterator,
I::Item: AsRef<str>,
pub fn otl_search_paths<I>(self, paths: I) -> Selfwhere
I: IntoIterator,
I::Item: AsRef<str>,
Add search paths for the Engine to find HDAs.
sourcepub fn dso_search_paths<P>(self, paths: P) -> Selfwhere
P: IntoIterator,
P::Item: AsRef<str>,
pub fn dso_search_paths<P>(self, paths: P) -> Selfwhere
P: IntoIterator,
P::Item: AsRef<str>,
Add search paths for the Engine to find DSO plugins.
sourcepub fn image_search_paths<P>(self, paths: P) -> Selfwhere
P: IntoIterator,
P::Item: AsRef<str>,
pub fn image_search_paths<P>(self, paths: P) -> Selfwhere
P: IntoIterator,
P::Item: AsRef<str>,
Add search paths for the Engine to find image plugins.
sourcepub fn audio_search_paths<P>(self, paths: P) -> Selfwhere
P: IntoIterator,
P::Item: AsRef<str>,
pub fn audio_search_paths<P>(self, paths: P) -> Selfwhere
P: IntoIterator,
P::Item: AsRef<str>,
Add search paths for the Engine to find audio files.
sourcepub fn ignore_already_init(self, ignore: bool) -> Self
pub fn ignore_already_init(self, ignore: bool) -> Self
Do not error when connecting to a server process which has a session already initialized.
sourcepub fn cook_options(self, options: CookOptions) -> Self
pub fn cook_options(self, options: CookOptions) -> Self
Pass session CookOptions
sourcepub fn threaded(self, threaded: bool) -> Self
pub fn threaded(self, threaded: bool) -> Self
Makes the server operate in threaded mode. See the official docs for more info.
sourcepub fn cleanup_on_close(self, cleanup: bool) -> Self
pub fn cleanup_on_close(self, cleanup: bool) -> Self
Cleanup the server session when the last connection drops.
sourcepub fn build(self) -> SessionOptions
pub fn build(self) -> SessionOptions
Consume the builder and return the result.