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

rlmesh::ext::ConnectAddress

enumPreviewuse rlmesh::ext::ConnectAddress;[source]

A client-side address for connecting to a running server.

enum ConnectAddress

Build one with ConnectAddress::parse, or pass a &str directly to the clients (e.g. crate::RemoteEnvOptions::address).

Tcp

variant[source]
Tcp(String)

A TCP endpoint, e.g. tcp://host:port.

Unix

variant[source]
Unix(std::path::PathBuf)

A Unix-domain socket path (Unix only).

parse

associated function[source]
fn parse(value: impl AsRef<str>) -> Result<Self>

Parse a connect target such as host:port, tcp://host:port, or unix:///path/to.sock.

Errors

Returns Error::InvalidArgument if value is not a recognized address (including a unix:// path on Windows, where Unix sockets are unsupported).

as_str

method[source]
fn as_str(&self) -> String

The address rendered as a connect string (tcp://... or unix://...).

Trait implementations

  • impl Debug for ConnectAddress
  • impl Clone for ConnectAddress
  • impl StructuralPartialEq for ConnectAddress
  • impl PartialEq for ConnectAddress
  • impl Eq for ConnectAddress
  • impl Display for ConnectAddress
  • impl FromStr for ConnectAddress
  • impl From<ConnectAddress> for RunLocalOptions