pub struct StagingQueueStatus {
pub total_files: u32,
pub pending_files: u32,
pub uploading_files: u32,
pub conflicted_files: u32,
pub failed_files: u32,
pub completed_files: u32,
pub total_bytes: u64,
pub bytes_uploaded: u64,
pub is_syncing: bool,
pub network_available: bool,
pub last_sync_at: Option<i64>,
pub last_sync_error: Option<String>,
}Expand description
Status summary of the offline staging queue.
Fields§
§total_files: u32Total number of files in the staging queue.
pending_files: u32Number of files pending upload.
uploading_files: u32Number of files currently uploading.
conflicted_files: u32Number of files with conflicts.
failed_files: u32Number of files that failed.
completed_files: u32Number of files completed.
total_bytes: u64Total bytes pending upload.
bytes_uploaded: u64Bytes uploaded so far.
is_syncing: boolWhether the queue is currently syncing.
network_available: boolWhether network is available.
last_sync_at: Option<i64>Unix timestamp (ms) of last sync attempt.
last_sync_error: Option<String>Error from last sync attempt (if failed).
Implementations§
Source§impl StagingQueueStatus
impl StagingQueueStatus
Sourcepub fn has_action_required(&self) -> bool
pub fn has_action_required(&self) -> bool
Returns true if there are files requiring user action.
Sourcepub fn all_completed(&self) -> bool
pub fn all_completed(&self) -> bool
Returns true if all uploads completed successfully.
Sourcepub fn percent_complete(&self) -> u32
pub fn percent_complete(&self) -> u32
Returns upload progress as a percentage (0-100).
Sourcepub fn active_count(&self) -> u32
pub fn active_count(&self) -> u32
Returns the number of actionable items (pending + uploading).
Trait Implementations§
Source§impl Clone for StagingQueueStatus
impl Clone for StagingQueueStatus
Source§fn clone(&self) -> StagingQueueStatus
fn clone(&self) -> StagingQueueStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StagingQueueStatus
impl Debug for StagingQueueStatus
Source§impl<'de> Deserialize<'de> for StagingQueueStatus
impl<'de> Deserialize<'de> for StagingQueueStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StagingQueueStatus
impl PartialEq for StagingQueueStatus
Source§impl Serialize for StagingQueueStatus
impl Serialize for StagingQueueStatus
impl Eq for StagingQueueStatus
impl StructuralPartialEq for StagingQueueStatus
Auto Trait Implementations§
impl Freeze for StagingQueueStatus
impl RefUnwindSafe for StagingQueueStatus
impl Send for StagingQueueStatus
impl Sync for StagingQueueStatus
impl Unpin for StagingQueueStatus
impl UnsafeUnpin for StagingQueueStatus
impl UnwindSafe for StagingQueueStatus
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