pub struct SyncProgress {
pub activities: StreamProgress,
pub gpx: StreamProgress,
pub health: StreamProgress,
pub performance: StreamProgress,
pub start_time: Instant,
pub profile_name: Mutex<String>,
pub date_range: Mutex<String>,
pub rate_history: Mutex<Vec<u32>>,
pub total_requests: AtomicU32,
}Expand description
Overall sync progress across all streams
Fields§
§activities: StreamProgressActivities stream progress
gpx: StreamProgressGPX downloads progress
health: StreamProgressHealth data progress
performance: StreamProgressPerformance metrics progress
start_time: InstantStart time for ETA calculation
profile_name: Mutex<String>User profile name
date_range: Mutex<String>Date range being synced
rate_history: Mutex<Vec<u32>>Request rate history (last 60 seconds)
total_requests: AtomicU32Total requests made
Implementations§
Source§impl SyncProgress
impl SyncProgress
Sourcepub fn set_profile(&self, name: &str)
pub fn set_profile(&self, name: &str)
Set profile name
Sourcepub fn get_profile(&self) -> String
pub fn get_profile(&self) -> String
Get profile name
Sourcepub fn set_date_range(&self, from: &str, to: &str)
pub fn set_date_range(&self, from: &str, to: &str)
Set date range
Sourcepub fn get_date_range(&self) -> String
pub fn get_date_range(&self) -> String
Get date range
Sourcepub fn record_request(&self)
pub fn record_request(&self)
Record a request for rate tracking
Sourcepub fn update_rate_history(&self)
pub fn update_rate_history(&self)
Update rate history (call once per second)
Sourcepub fn requests_per_minute(&self) -> u32
pub fn requests_per_minute(&self) -> u32
Get rate per minute (average over last minute)
Sourcepub fn elapsed_str(&self) -> String
pub fn elapsed_str(&self) -> String
Get elapsed time as formatted string
Sourcepub fn total_remaining(&self) -> u32
pub fn total_remaining(&self) -> u32
Get total items remaining across all streams
Sourcepub fn total_completed(&self) -> u32
pub fn total_completed(&self) -> u32
Get total completed across all streams
Sourcepub fn total_failed(&self) -> u32
pub fn total_failed(&self) -> u32
Get total failed across all streams
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if all streams are complete
Sourcepub fn print_simple_status(&self)
pub fn print_simple_status(&self)
Print simple status line (for –simple mode)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SyncProgress
impl RefUnwindSafe for SyncProgress
impl Send for SyncProgress
impl Sync for SyncProgress
impl Unpin for SyncProgress
impl UnwindSafe for SyncProgress
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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