pub fn classify_ui_target(uri: &str) -> Result<UiTarget, String>Expand description
Classify a red ui target URI into the bridge backend it requires.
file:// and bare filesystem paths resolve to UiTarget::File;
red://host[:port] and reds://host[:port] resolve to
UiTarget::Remote with the parser’s default port
(reddb_wire::DEFAULT_PORT_RED, 5050) when none is given and tls
set for reds://. Any other scheme (or a cluster URI) is an error —
red ui bridges exactly one endpoint.