pub struct RuntimeConnectLaunch {
pub config_path: String,
pub address_pointer: String,
pub port_pointer: Option<String>,
pub default_address: Option<String>,
pub auth_pointer: Option<String>,
pub protocol: String,
}Expand description
Connect to an already-running harness endpoint instead of spawning one.
The registry stores where the endpoint and its credential live — the harness’s own config file — never the values themselves. The service resolves them when it opens the connection, so a rotated token or a moved gateway is picked up on the next open without a registry change.
Fields§
§config_path: StringHarness config file holding the endpoint; a leading ~/ expands to the
caller’s home directory at resolve time.
address_pointer: StringJSON pointer to the endpoint address inside the config file.
port_pointer: Option<String>Optional JSON pointer to a PORT number in the config file, consulted
when address_pointer names nothing: the address becomes that port on
loopback under default_address’s scheme. Harnesses like openclaw
configure a bare gateway.port, never a full URL.
default_address: Option<String>Optional fallback endpoint when neither pointer resolves — the harness’s documented out-of-the-box endpoint. With this set, a missing or pointer-less config is the harness “running on defaults”, not an error.
auth_pointer: Option<String>Optional JSON pointer to the bearer credential inside the config file.
protocol: StringProtocol spoken at the endpoint.
Implementations§
Source§impl RuntimeConnectLaunch
impl RuntimeConnectLaunch
Sourcepub fn resolve(&self, home: &Path) -> Result<ResolvedRuntimeConnection, Error>
pub fn resolve(&self, home: &Path) -> Result<ResolvedRuntimeConnection, Error>
Resolve the endpoint address and credential from the harness’s config file. Fails closed: a declared pointer that does not resolve to a non-empty string is an error, and diagnostics name the path and the pointer without echoing config contents.
Trait Implementations§
Source§impl Clone for RuntimeConnectLaunch
impl Clone for RuntimeConnectLaunch
Source§fn clone(&self) -> RuntimeConnectLaunch
fn clone(&self) -> RuntimeConnectLaunch
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeConnectLaunch
impl Debug for RuntimeConnectLaunch
Source§impl<'de> Deserialize<'de> for RuntimeConnectLaunch
impl<'de> Deserialize<'de> for RuntimeConnectLaunch
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeConnectLaunch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeConnectLaunch, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for RuntimeConnectLaunch
Source§impl PartialEq for RuntimeConnectLaunch
impl PartialEq for RuntimeConnectLaunch
Source§impl Serialize for RuntimeConnectLaunch
impl Serialize for RuntimeConnectLaunch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for RuntimeConnectLaunch
Auto Trait Implementations§
impl Freeze for RuntimeConnectLaunch
impl RefUnwindSafe for RuntimeConnectLaunch
impl Send for RuntimeConnectLaunch
impl Sync for RuntimeConnectLaunch
impl Unpin for RuntimeConnectLaunch
impl UnsafeUnpin for RuntimeConnectLaunch
impl UnwindSafe for RuntimeConnectLaunch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.