[][src]Enum myxine_core::Subscription

pub enum Subscription {
    Specific(HashSet<String>),
    Universal,
}

A subscription to events is either a Universal subscription to all events, or a Specific set of events to which the client wishes to subscribe.

Variants

Specific(HashSet<String>)

The client is interested in a specific set of events listed herein.

An empty set indicates an interest in zero events, and is distinct from a universal subscription, which indicates an interest in every event.

Universal

The client is interested in all events, no matter what type they are.

Implementations

impl Subscription[src]

pub fn from_events(events: impl Into<HashSet<String>>) -> Self[src]

Make a subscription from a collection of events.

pub fn universal() -> Self[src]

Make a universal subscription to all events.

pub fn matches_event(&self, event: &str) -> bool[src]

Tests whether a given event is a member of this subscription.

Trait Implementations

impl Clone for Subscription[src]

impl Debug for Subscription[src]

impl Eq for Subscription[src]

impl PartialEq<Subscription> for Subscription[src]

impl StructuralEq for Subscription[src]

impl StructuralPartialEq for Subscription[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,