pub struct BatchUpdate {
pub id: NativeId,
pub update: TaskUpdate,
pub if_version: Option<String>,
pub when_priority: Vec<Priority>,
}Expand description
One update of a batch: a targeted update of one existing task, held to the version the
caller read when if_version names one, and written only while the task holds one of the
priorities when_priority names when it names any.
Fields§
§id: NativeIdThe task.
update: TaskUpdateEvery field written, together, in one held write.
if_version: Option<String>The version the task must be at for anything to be written.
when_priority: Vec<Priority>The priorities the task must hold for anything to be written — Priority::None
matching a task with none. Empty sets no guard.
Trait Implementations§
Source§impl Clone for BatchUpdate
impl Clone for BatchUpdate
Source§impl Debug for BatchUpdate
impl Debug for BatchUpdate
Source§impl PartialEq for BatchUpdate
impl PartialEq for BatchUpdate
impl StructuralPartialEq for BatchUpdate
Auto Trait Implementations§
impl Forget for BatchUpdate
impl Freeze for BatchUpdate
impl Move for BatchUpdate
impl RefUnwindSafe for BatchUpdate
impl Send for BatchUpdate
impl Sync for BatchUpdate
impl Unpin for BatchUpdate
impl UnsafeUnpin for BatchUpdate
impl UnwindSafe for BatchUpdate
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