pub trait Adapter {
// Required method
fn name(&self) -> &str;
// Provided methods
fn transport_kind(&self) -> &str { ... }
fn connection_state(&self) -> &str { ... }
fn lag(&self) -> Option<u64> { ... }
fn status_fields(&self) -> Map<String, Value> { ... }
}Expand description
Minimal adapter identity contract.
Required Methods§
Provided Methods§
Sourcefn transport_kind(&self) -> &str
fn transport_kind(&self) -> &str
Adapter transport family label.
Sourcefn connection_state(&self) -> &str
fn connection_state(&self) -> &str
Best-effort connection/runtime state for operator visibility.
Sourcefn status_fields(&self) -> Map<String, Value>
fn status_fields(&self) -> Map<String, Value>
Transport-specific runtime fields that can be attached to operator snapshots.