adapter
ModuleThe Adapter trait every provider implements, and what they share:
the checks and telemetry around a send (Adapter::send) and the
Base that holds the requester and the send counter.
Contents
use utopia_messaging::Base;Rust
pub struct BaseWhat every adapter holds: how it makes requests, and the counter its sends are recorded on.
Also implements
Debug.use utopia_messaging::Adapter;Rust
pub trait Adapter: Send + SyncA provider that sends one kind of message.
Implement it to add a provider: Adapter::process sends a message
that already passed the checks of Adapter::send, which callers use.
use utopia_messaging::Configure;Rust
pub trait Configure: SizedSwaps how an adapter makes requests.
Rust
pub const SEND_COUNTER: &str = "messaging.send"The name of the counter sends are recorded on.