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

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Should always be Self

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.