Trait little_stomper::client::Client[][src]

pub trait Client: Subscriber + Sender + Sync + Send {
    fn connect_callback(&self, result: Result<(), StomperError>);
fn error(&self, message: &str);
fn into_sender(self: Arc<Self>) -> Arc<dyn Sender>;
fn into_subscriber(self: Arc<Self>) -> Arc<dyn Subscriber>; }
Expand description

A proxy for a client which can subscribe to destinations, receive messages and send messages.

Note that a client must also implement destinations::Subscriber and destinations::Sender, which define the bulk of the API.

Required methods

A callback which is called when a client has connected, with the result of processing to date.

Allows error messages to be send to the client

Exposes self as a Sender.

Exposes self as a Subscriber.

Implementors