Skip to main content

open

Function open 

Source
pub fn open(url: &str) -> Result<Arc<dyn Transport>, DispatchError>
Expand description

Open a transport for the given URL with no SSH trust-pinning. Returns a type-erased Arc so callers can treat all schemes uniformly.

Low-level scheme dispatch only — it neither enforces the credential gate nor threads ssh.* config. Any caller that has a Config must use open_with_config (directly, or via open_trusted) so the trust-pinning keys reach the spawned ssh(1); open stays public only for file/memory integration tests that have no ambient config to resolve.