rlmesh::RemoteModelOptions
Options for connecting to a served model: the same as RemoteEnvOptions without workflow_edition.
struct RemoteModelOptionsFields
- addressThe endpoint (
tcp://host:port,host:portorunix:///path). - hostTCP host helper (default
127.0.0.1); needsport. - portTCP port helper.
- pathUnix socket path helper; excludes
hostandport. - transportExplicit transport.
- connect_timeoutBound on each session's dial to the model (zero: none).
- request_timeoutBound on each
predictand route close of sessions off this handle (zero: none).
Methods
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>) -> SelfSet address.
host
method[source]fn host(self, host: impl Into<String>) -> SelfSet host.
port
method[source]fn port(self, port: u16) -> SelfSet port.
path
method[source]fn path(self, path: impl Into<String>) -> SelfSet path.
transport
method[source]fn transport(self, transport: Transport) -> SelfSet transport.
connect_timeout
method[source]fn connect_timeout(self, timeout: impl Into<Duration>) -> SelfSet connect_timeout.
request_timeout
method[source]fn request_timeout(self, timeout: impl Into<Duration>) -> SelfSet request_timeout.
Trait implementations
- impl Clone for RemoteModelOptions
- impl Debug for RemoteModelOptions
- impl Default for RemoteModelOptions