pub enum QueuedOp {
PlaybackStart {
item_id: String,
position_ticks: i64,
},
PlaybackStopped {
item_id: String,
position_ticks: i64,
},
MarkPlayed {
item_id: String,
},
MarkUnplayed {
item_id: String,
},
Favorite {
item_id: String,
is_favorite: bool,
},
}Expand description
A queued mutation, resolved from its stored operation + JSON payload.
Variants§
PlaybackStart
PlaybackStopped
Also where update_progress lands: replaying a mid-playback progress
report long after the fact would tell the server we are still playing.
What the row actually carries is a resume position, and “stopped at N”
is how that reaches Jellyfin’s UserData.
MarkPlayed
MarkUnplayed
The inverse, queued by the watched toggle. Pushes as clear_watch_history
(Jellyfin’s mark-unplayed), which also zeroes the resume position — so an
item un-marked offline does not come back carrying a stale position.
Favorite
Legacy rows only — live favourite toggles drain via user_data.pending_sync
(DR-120). Supported so a row written by an older build still lands.
Trait Implementations§
impl Eq for QueuedOp
impl StructuralPartialEq for QueuedOp
Auto Trait Implementations§
impl Freeze for QueuedOp
impl RefUnwindSafe for QueuedOp
impl Send for QueuedOp
impl Sync for QueuedOp
impl Unpin for QueuedOp
impl UnsafeUnpin for QueuedOp
impl UnwindSafe for QueuedOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more