Skip to main content

apply_updates

Function apply_updates 

Source
pub fn apply_updates<T, U>(
    target: &mut T,
    updates: &[U],
) -> Result<UpdateReport, Error>
where T: UpdateTarget<U>,
Expand description

Validate a complete batch, then apply it atomically to target.

If any update is invalid, target is unchanged.