pub enum ConnectionTarget {
Memory,
File {
path: PathBuf,
},
Grpc {
endpoint: String,
},
GrpcCluster {
primary: String,
replicas: Vec<String>,
force_primary: bool,
},
Http {
base_url: String,
},
RedWire {
host: String,
port: u16,
tls: bool,
},
}Expand description
Normalised target produced by parse.
Variants intentionally mirror the existing drivers/rust Target
shape so the future consolidation slice is a re-export, not a
behaviour change.
Variants§
Memory
memory:// — ephemeral, in-memory backend.
File
file:///abs/path — embedded engine on disk.
Grpc
Single remote endpoint over grpc:// or grpcs://. Stored
as a normalised http://host:port string because tonic’s
Endpoint consumes that form.
GrpcCluster
Multi-host gRPC URI: primary + read replicas. Writes hit the
primary; reads round-robin across replicas unless
force_primary is set.
Http
http://host:port / https://host:port — REST endpoint.
RedWire
red://host:port (plain TCP) or reds://host:port (TLS).
RedWire binary frame protocol per ADR 0001. The connector
speaks framed binary directly; it does NOT route through
tonic.
Trait Implementations§
Source§impl Clone for ConnectionTarget
impl Clone for ConnectionTarget
Source§fn clone(&self) -> ConnectionTarget
fn clone(&self) -> ConnectionTarget
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 ConnectionTarget
impl Debug for ConnectionTarget
Source§impl PartialEq for ConnectionTarget
impl PartialEq for ConnectionTarget
Source§fn eq(&self, other: &ConnectionTarget) -> bool
fn eq(&self, other: &ConnectionTarget) -> bool
self and other values to be equal, and is used by ==.