fn can_move<C: LifecycleChunk>(rules: &LifecycleRules, chunk: &C, now: DateTime<Utc>) -> bool {
    if chunk.row_count() >= rules.mub_row_threshold.get() {
        return true;
    }

    elapsed_seconds(now, chunk.time_of_last_write()) >= rules.late_arrive_window_seconds.get()
}
/// Returns if the chunk is sufficiently cold and old to move
///
/// Note: Does not check the chunk is the correct state
Returns if the chunk is sufficiently cold and old to move
Note: Does not check the chunk is the correct state
Returns if the chunk is sufficiently cold and old to move Note : Does not check the chunk is the correct state
fn can_move<C: LifecycleChunk>(rules: &LifecycleRules, chunk: &C, now: DateTime<Utc>) -> bool {
    if chunk.row_count() >= rules.mub_row_threshold.get() {
        return true;
    }
    elapsed_seconds(now, chunk.time_of_last_write()) >= rules.late_arrive_window_seconds.get()
}
fn can_move < C : LifecycleChunk > ( rules : & LifecycleRules , chunk : & C , now : DateTime < Utc > ) -> bool { if chunk . row_count ( ) >= rules . mub_row_threshold . get ( ) { return true ; } elapsed_seconds ( now , chunk . time_of_last_write ( ) ) >= rules . late_arrive_window_seconds . get ( ) }
Returns if the chunk is sufficiently cold and old to move
Note: Does not check the chunk is the correct state
Returns if the chunk is sufficiently cold and old to move Note : Does not check the chunk is the correct state
rules
&LifecycleRules
chunk
&C
now
DateTime<Utc>
rules
&LifecycleRules
chunk
&C
now
DateTime<Utc>