pub struct MultipleTimeline { /* private fields */ }Implementations§
Source§impl MultipleTimeline
impl MultipleTimeline
pub fn new( bucket_type: BucketType, base_ids: Vec<Id>, post_bundle_manager: Arc<dyn PostBundleManager>, recent_posts_pen: Arc<RwLock<RecentPostsPen>>, ) -> Self
pub fn base_ids(&self) -> &Vec<Id>
pub fn bucket_type(&self) -> BucketType
pub async fn get_more_posts( &mut self, time_millis: TimeMillis, max_posts: usize, max_posts_per_single_timeline: usize, bucket_durations: &[DurationMillis], ) -> Result<Vec<(BucketLocation, Bytes)>>
pub fn oldest_processed_post_bundle_time_millis(&self) -> TimeMillis
Auto Trait Implementations§
impl Freeze for MultipleTimeline
impl !RefUnwindSafe for MultipleTimeline
impl Send for MultipleTimeline
impl Sync for MultipleTimeline
impl Unpin for MultipleTimeline
impl UnsafeUnpin for MultipleTimeline
impl !UnwindSafe for MultipleTimeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more