Skip to main content

StreamMessages

Trait StreamMessages 

Source
pub trait StreamMessages {
    // Required methods
    fn stream_consent_updates(
        self,
    ) -> impl Stream<Item = Result<Vec<StoredConsentRecord>, SubscribeError>>;
    fn stream_preference_updates(
        self,
    ) -> impl Stream<Item = Result<Vec<PreferenceUpdate>, SubscribeError>>;
    fn stream_message_deletions(
        self,
    ) -> impl Stream<Item = Result<DecodedMessage, SubscribeError>>;
}
Expand description

The legacy local streams read from a subscription to the client’s internal events.

Required Methods§

The consent records of each preference change.

Source

fn stream_preference_updates( self, ) -> impl Stream<Item = Result<Vec<PreferenceUpdate>, SubscribeError>>

The updates of each preference change.

Source

fn stream_message_deletions( self, ) -> impl Stream<Item = Result<DecodedMessage, SubscribeError>>

Each deleted message, decoded as a deleted message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl StreamMessages for Subscription<InternalEvent>

Source§

fn stream_preference_updates( self, ) -> impl Stream<Item = Result<Vec<PreferenceUpdate>, SubscribeError>>

Source§

fn stream_message_deletions( self, ) -> impl Stream<Item = Result<DecodedMessage, SubscribeError>>

Implementors§