Trait little_stomper::destinations::Destination[][src]

pub trait Destination: Send + Clone {
    fn subscribe<T: BorrowedSubscriber>(
        &self,
        sender_subscription_id: Option<SubscriptionId>,
        subscriber: T
    );
fn unsubscribe<T: BorrowedSubscriber>(
        &self,
        sub_id: SubscriptionId,
        subscriber: T
    );
fn send<T: BorrowedSender>(&self, message: InboundMessage, sender: T);
fn close(&self); }
Expand description

A destinations is a identifiable resource that clients can subscribe to, and send messages to

Required methods

Implementors