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) -> Self
pub fn houdini_env_files<I>(self, files: I) -> Self
A list of Houdini environment file the Engine will load environment from.
Sourcepub fn env_variables<'a, I, K, V>(self, variables: I) -> Self
pub fn env_variables<'a, I, K, V>(self, variables: I) -> Self
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) -> Self
pub fn otl_search_paths<I>(self, paths: I) -> Self
Add search paths for the Engine to find HDAs.
Sourcepub fn dso_search_paths<P>(self, paths: P) -> Self
pub fn dso_search_paths<P>(self, paths: P) -> Self
Add search paths for the Engine to find DSO plugins.
Sourcepub fn image_search_paths<P>(self, paths: P) -> Self
pub fn image_search_paths<P>(self, paths: P) -> Self
Add search paths for the Engine to find image plugins.
Sourcepub fn audio_search_paths<P>(self, paths: P) -> Self
pub fn audio_search_paths<P>(self, paths: P) -> Self
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 session_info(self, info: SessionInfo) -> Self
pub fn session_info(self, info: SessionInfo) -> Self
Session init options SessionInfo
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.
pub fn log_file(self, file: impl AsRef<Path>) -> Self
Sourcepub fn build(self) -> SessionOptions
pub fn build(self) -> SessionOptions
Consume the builder and return the result.