This reference describes unreleased code on main; no release documents it yet.

rlmesh::RemoteModelOptions

structPreviewuse rlmesh::RemoteModelOptions;[source]

Options for connecting to a served model: the same as RemoteEnvOptions without workflow_edition.

struct RemoteModelOptions

address

field[source]
address: Option<String>

The endpoint (tcp://host:port, host:port or unix:///path).

host

field[source]
host: Option<String>

TCP host helper (default 127.0.0.1); needs port.

port

field[source]
port: Option<u16>

TCP port helper.

path

field[source]
path: Option<String>

Unix socket path helper; excludes host and port.

transport

field[source]
transport: Option<Transport>

Explicit transport.

connect_timeout

field[source]
connect_timeout: Option<std::time::Duration>

Bound on each session’s dial to the model (zero: none).

request_timeout

field[source]
request_timeout: Option<std::time::Duration>

Bound on each predict and route close of sessions off this handle (zero: none).

address

method[source]
fn address(self, address: impl Into<String>) -> Self

Set address.

host

method[source]
fn host(self, host: impl Into<String>) -> Self

Set host.

port

method[source]
fn port(self, port: u16) -> Self

Set port.

path

method[source]
fn path(self, path: impl Into<String>) -> Self

Set path.

transport

method[source]
fn transport(self, transport: Transport) -> Self

Set transport.

connect_timeout

method[source]
fn connect_timeout(self, timeout: impl Into<Duration>) -> Self

Set connect_timeout.

request_timeout

method[source]
fn request_timeout(self, timeout: impl Into<Duration>) -> Self

Set request_timeout.

Trait implementations

  • impl Clone for RemoteModelOptions
  • impl Debug for RemoteModelOptions
  • impl Default for RemoteModelOptions