rlmesh::env::RemoteEnvOptions
Options for connecting to a single or vector environment.
struct RemoteEnvOptionsaddress excludes the helpers (host, port, path, transport);
without either the constructor fails with the ValueError class. A zero
timeout means no timeout, as None does.
Also available as rlmesh::RemoteEnvOptions.
Fields
- 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;
Unixneedspath,Tcprefuses it. - connect_timeoutBound on the dial and handshake.
- request_timeoutBound on each
reset,step,renderandshutdown, also sent to the server as the request deadline;closeuses it too. - workflow_editionThe workflow edition this client declares on the handshake; empty or whitespace declares nothing and resolution continues.
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; Unix needs path, Tcp refuses it.
connect_timeout
field[source]connect_timeout: Option<std::time::Duration>Bound on the dial and handshake.
request_timeout
field[source]request_timeout: Option<std::time::Duration>Bound on each reset, step, render and shutdown, also sent to
the server as the request deadline; close uses it too.
workflow_edition
field[source]workflow_edition: Option<String>The workflow edition this client declares on the handshake; empty or whitespace declares nothing and resolution continues.
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.
workflow_edition
method[source]fn workflow_edition(self, edition: impl Into<String>) -> SelfSet workflow_edition.
Trait implementations
- impl Clone for RemoteEnvOptions
- impl Debug for RemoteEnvOptions
- impl Default for RemoteEnvOptions