pub struct ServerOptions {
pub thrift_transport: ThriftTransport,
pub auto_close: bool,
pub verbosity: StatusVerbosity,
pub log_file: Option<CString>,
pub env_variables: Option<HashMap<OsString, OsString>>,
pub license_preference: Option<LicensePreference>,
pub connection_count: i32,
pub server_ready_timeout: Option<u32>,
/* private fields */
}Fields§
§thrift_transport: ThriftTransport§auto_close: bool§verbosity: StatusVerbosity§log_file: Option<CString>§env_variables: Option<HashMap<OsString, OsString>>§license_preference: Option<LicensePreference>§connection_count: i32§server_ready_timeout: Option<u32>Implementations§
Source§impl ServerOptions
impl ServerOptions
Create options for a shared-memory transport with a random name.
Sourcepub fn pipe_with_defaults() -> Self
pub fn pipe_with_defaults() -> Self
Create options for a named pipe transport.
Sourcepub fn socket_with_defaults(address: SocketAddrV4) -> Self
pub fn socket_with_defaults(address: SocketAddrV4) -> Self
Create options for a socket transport.
pub fn with_thrift_transport(self, transport: ThriftTransport) -> Self
Sourcepub fn with_connection_timeout(self, timeout: Option<Duration>) -> Self
pub fn with_connection_timeout(self, timeout: Option<Duration>) -> Self
Set a connection timeout used when establishing Thrift sessions.
Sourcepub fn with_license_preference(
self,
license_preference: LicensePreference,
) -> Self
pub fn with_license_preference( self, license_preference: LicensePreference, ) -> Self
Set the license preference for the server. For more information, see https://www.sidefx.com/docs/houdini//licensing/system.html Default is No preference, the server decides which license to check out.
Sourcepub fn with_log_file(self, file: impl AsRef<Path>) -> Self
pub fn with_log_file(self, file: impl AsRef<Path>) -> Self
Set the log file for the server. BUG: HARS 21.0.685 has a bug where the log file is always created in the working directory
Sourcepub fn with_env_variables<'a, I, K, V>(self, variables: I) -> Self
pub fn with_env_variables<'a, I, K, V>(self, variables: I) -> Self
Set real environment variables before the server starts.
Unlike crate::session::Session::set_server_var, where the variables are set in the session after the
server starts.
Sourcepub fn with_auto_close(self, auto_close: bool) -> Self
pub fn with_auto_close(self, auto_close: bool) -> Self
Automatically close the server when the last connection drops.
Sourcepub fn with_verbosity(self, verbosity: StatusVerbosity) -> Self
pub fn with_verbosity(self, verbosity: StatusVerbosity) -> Self
Set the verbosity level for the server.
pub fn with_connection_count(self, connection_count: i32) -> Self
Sourcepub fn with_server_ready_timeout(self, timeout: u32) -> Self
pub fn with_server_ready_timeout(self, timeout: u32) -> Self
Set the timeout for the server to be ready in ms This is the timeout for the server to initialize and be ready to accept connections.
Trait Implementations§
Source§impl Clone for ServerOptions
impl Clone for ServerOptions
Source§fn clone(&self) -> ServerOptions
fn clone(&self) -> ServerOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more