pub enum StateUpdate {
ItemCompleted {
project_id: String,
result: ItemResult,
attempts: u32,
},
StatusChanged {
status: OperationStatus,
},
ProgressUpdated {
progress: ProgressUpdate,
},
}Expand description
Types of state updates
Variants§
ItemCompleted
An item was processed
StatusChanged
Operation status changed
Fields
§
status: OperationStatusProgressUpdated
Progress was updated (for partial saves)
Fields
§
progress: ProgressUpdateAuto Trait Implementations§
impl Freeze for StateUpdate
impl RefUnwindSafe for StateUpdate
impl Send for StateUpdate
impl Sync for StateUpdate
impl Unpin for StateUpdate
impl UnsafeUnpin for StateUpdate
impl UnwindSafe for StateUpdate
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