pub fn update_as_pred(
layout: &Layout,
id: &str,
new_state: Option<&str>,
new_priority: Option<char>,
block_add: Option<&str>,
block_clear: Option<&str>,
identity: &str,
pred: UpdatePred<'_>,
) -> Result<UpdateOutcome>Expand description
update_as with a last-seen predicate.
ยงErrors
Same as update_as, plus Error::StaleWrite when the predicate fails.