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§
Sourcefn stream_consent_updates(
self,
) -> impl Stream<Item = Result<Vec<StoredConsentRecord>, SubscribeError>>
fn stream_consent_updates( self, ) -> impl Stream<Item = Result<Vec<StoredConsentRecord>, SubscribeError>>
The consent records of each preference change.
Sourcefn stream_preference_updates(
self,
) -> impl Stream<Item = Result<Vec<PreferenceUpdate>, SubscribeError>>
fn stream_preference_updates( self, ) -> impl Stream<Item = Result<Vec<PreferenceUpdate>, SubscribeError>>
The updates of each preference change.
Sourcefn stream_message_deletions(
self,
) -> impl Stream<Item = Result<DecodedMessage, SubscribeError>>
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.