pub enum BridgeBackend {
Embedded,
Kafka {
endpoint: String,
},
Nats {
endpoint: String,
},
}Expand description
Typed bridge backend selection, resolved from the flat TOML fields.
The TOML wire format deliberately keeps the shipped flat keys
(bridge_backend = "kafka" + bridge_endpoint = …): this is a
public tool with configs in the field, and a config_version bump
that strands them is a hazard. Everything downstream of parsing
works with these enums instead — each variant carries its required
companions, so “kafka without an endpoint” is unrepresentable once
resolved. The per-selector accessors on HarnessConfig
(HarnessConfig::bridge and friends) are the SINGLE site that
owns the legal-value vocabulary and the required-companion rules;
validate() and the daemon’s backend factories both delegate to
them (previously the four selectors were Strings whose
legal values were enumerated twice, with companion rules spread
across four more sites).
Variants§
Embedded
Embedded broker persisting under bridge_data_dir.
Kafka
Kafka/Redpanda; endpoint is the host:port[,host:port]
bootstrap list (not a URL — no scheme check applies).
Nats
NATS JetStream; endpoint is a nats:// or tls:// URL.
Trait Implementations§
Source§impl Clone for BridgeBackend
impl Clone for BridgeBackend
Source§fn clone(&self) -> BridgeBackend
fn clone(&self) -> BridgeBackend
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 BridgeBackend
impl Debug for BridgeBackend
Source§impl PartialEq for BridgeBackend
impl PartialEq for BridgeBackend
Source§fn eq(&self, other: &BridgeBackend) -> bool
fn eq(&self, other: &BridgeBackend) -> bool
self and other values to be equal, and is used by ==.impl Eq for BridgeBackend
impl StructuralPartialEq for BridgeBackend
Auto Trait Implementations§
impl Freeze for BridgeBackend
impl RefUnwindSafe for BridgeBackend
impl Send for BridgeBackend
impl Sync for BridgeBackend
impl Unpin for BridgeBackend
impl UnsafeUnpin for BridgeBackend
impl UnwindSafe for BridgeBackend
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more