Struct svc_agent::EventSubscription[][src]

pub struct EventSubscription<'a> { /* fields omitted */ }

Implementations

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

Returns a topic to subscribe to as string. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.