pub enum StagingEvent {
FileStaged {
upload_id: String,
file_name: String,
},
UploadStarted {
upload_id: String,
},
UploadProgress {
upload_id: String,
bytes_uploaded: u64,
total_bytes: u64,
},
UploadCompleted {
upload_id: String,
destination_path: String,
},
ConflictDetected {
upload_id: String,
conflict_type: ConflictType,
},
UploadFailed {
upload_id: String,
error: String,
},
QueueCleared {
files_removed: u32,
},
NetworkStatusChanged {
available: bool,
},
SyncStarted,
SyncCompleted {
files_uploaded: u32,
files_failed: u32,
},
}Expand description
Event emitted when staging queue state changes.
Variants§
FileStaged
A file was added to the staging queue.
UploadStarted
Upload started for a staged file.
UploadProgress
Upload progress update.
Fields
UploadCompleted
Upload completed successfully.
ConflictDetected
Conflict detected during upload.
UploadFailed
Upload failed.
QueueCleared
Staging queue cleared.
NetworkStatusChanged
Network connectivity changed.
SyncStarted
Sync started.
SyncCompleted
Sync completed.
Trait Implementations§
Source§impl Clone for StagingEvent
impl Clone for StagingEvent
Source§fn clone(&self) -> StagingEvent
fn clone(&self) -> StagingEvent
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 StagingEvent
impl Debug for StagingEvent
Source§impl<'de> Deserialize<'de> for StagingEvent
impl<'de> Deserialize<'de> for StagingEvent
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 StagingEvent
impl PartialEq for StagingEvent
Source§impl Serialize for StagingEvent
impl Serialize for StagingEvent
impl Eq for StagingEvent
impl StructuralPartialEq for StagingEvent
Auto Trait Implementations§
impl Freeze for StagingEvent
impl RefUnwindSafe for StagingEvent
impl Send for StagingEvent
impl Sync for StagingEvent
impl Unpin for StagingEvent
impl UnsafeUnpin for StagingEvent
impl UnwindSafe for StagingEvent
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