Skip to main content

PostBundleFeedbackManager

Trait PostBundleFeedbackManager 

Source
pub trait PostBundleFeedbackManager: Send + Sync {
    // Required method
    fn get_post_bundle_feedback<'life0, 'async_trait>(
        &'life0 self,
        bucket_location: BucketLocation,
        time_millis: TimeMillis,
    ) -> Pin<Box<dyn Future<Output = Result<EncodedPostBundleFeedbackV1>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

The counterpart to [PostBundleManager] that fetches the signed feedback attached to a post bundle — the reactions, flags, and visibility hints that clients use to filter and rank the posts they display.

Feedback is carried separately from the post bundle on purpose: feedback mutates long after the original bundle has been sealed, and not every client needs it (for instance timelines that bypass moderation thresholds can skip the fetch). Implementors follow the same cache-then-network pattern as PostBundleManager.

Required Methods§

Source

fn get_post_bundle_feedback<'life0, 'async_trait>( &'life0 self, bucket_location: BucketLocation, time_millis: TimeMillis, ) -> Pin<Box<dyn Future<Output = Result<EncodedPostBundleFeedbackV1>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§