Struct svc_agent::EventSubscription [−][src]
pub struct EventSubscription<'a> { /* fields omitted */ }Implementations
impl<'a> EventSubscription<'a>[src]
impl<'a> EventSubscription<'a>[src]pub fn new(source: Source<'a>) -> Self[src]
pub fn new(source: Source<'a>) -> Self[src]Builds an EventSubscription.
Arguments
source– events source.
Example
let account_id = AccountId::new("service_name", "svc.example.org"); let source = Source::Broadcast(&account_id, "v1", "rooms/+/events"); let subscription = EventSubscription::new(source);
Trait Implementations
impl<'a> SubscriptionTopic for EventSubscription<'a>[src]
impl<'a> SubscriptionTopic for EventSubscription<'a>[src]fn subscription_topic<A>(
&self,
_me: &A,
_me_version: &str
) -> Result<String, Error> where
A: Addressable, [src]
fn subscription_topic<A>(
&self,
_me: &A,
_me_version: &str
) -> Result<String, Error> where
A: Addressable, [src]Returns a topic to subscribe to as string. Read more