pub enum StagedUploadState {
Pending,
Uploading,
Conflicted,
Completed,
Failed,
}Expand description
State of a staged upload in the offline queue.
Variants§
Pending
Queued and waiting for network connectivity.
Uploading
Upload in progress (network restored).
Conflicted
Upload paused due to conflict.
Completed
Upload completed successfully.
Failed
Upload failed after retries exhausted.
Implementations§
Source§impl StagedUploadState
impl StagedUploadState
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if the staged upload is in a terminal state.
Sourcepub fn requires_action(&self) -> bool
pub fn requires_action(&self) -> bool
Returns true if the staged upload requires user action.
Trait Implementations§
Source§impl Clone for StagedUploadState
impl Clone for StagedUploadState
Source§fn clone(&self) -> StagedUploadState
fn clone(&self) -> StagedUploadState
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 StagedUploadState
impl Debug for StagedUploadState
Source§impl<'de> Deserialize<'de> for StagedUploadState
impl<'de> Deserialize<'de> for StagedUploadState
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 Hash for StagedUploadState
impl Hash for StagedUploadState
Source§impl PartialEq for StagedUploadState
impl PartialEq for StagedUploadState
Source§impl Serialize for StagedUploadState
impl Serialize for StagedUploadState
impl Copy for StagedUploadState
impl Eq for StagedUploadState
impl StructuralPartialEq for StagedUploadState
Auto Trait Implementations§
impl Freeze for StagedUploadState
impl RefUnwindSafe for StagedUploadState
impl Send for StagedUploadState
impl Sync for StagedUploadState
impl Unpin for StagedUploadState
impl UnsafeUnpin for StagedUploadState
impl UnwindSafe for StagedUploadState
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