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 ==.impl Eq for ConnectionTarget
impl StructuralPartialEq for ConnectionTarget
Auto Trait Implementations§
impl Freeze for ConnectionTarget
impl RefUnwindSafe for ConnectionTarget
impl Send for ConnectionTarget
impl Sync for ConnectionTarget
impl Unpin for ConnectionTarget
impl UnsafeUnpin for ConnectionTarget
impl UnwindSafe for ConnectionTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request