intrepid-model 0.3.0

Manage complex async business logic with ease
Documentation
1
2
3
4
5
6
7
8
9
use super::SubscriptionName;

/// Implement this trait for a type that can be used as a subscription topic. That means
/// that the type can be used to create a subscription to a stream of events using the
/// `Subscription` type.
pub trait SubscriptionTopic {
    /// Get the name of the stream that the subscription will read from.
    fn stream_name(&self) -> SubscriptionName;
}