PatchEntry

Trait PatchEntry 

Source
pub trait PatchEntry: Send + Sync {
    // Required methods
    fn init(&mut self) -> Result<(), PatchError>;
    fn teardown(&mut self);
}
Expand description

Optional entry point for patches with initialization/teardown

Required Methods§

Source

fn init(&mut self) -> Result<(), PatchError>

Called when the patch is loaded and validated but before activation

Source

fn teardown(&mut self)

Called when the patch is being unloaded or rolled back

Implementors§