pub trait TryPatch {
type Patch: Clone;
type Error: Error + Send + Sync + 'static;
// Required method
fn try_patch(&mut self, patch: Self::Patch) -> Result<(), Self::Error>;
}Expand description
A fallible variant of Patchable.
This trait allows components to apply a patch with validation and return a custom error when the patch cannot be safely applied.