pub trait Activator {
// Required method
fn activate(&self, release: &ReleaseId) -> Result<(), StageError>;
}Expand description
Materializes a pointer flip to a release — a symlink swap, an image tag, or a process swap.
Called once to apply the new version and, in reverse, once to roll back to the previous one. The previous version stays staged, so a rollback flip never re-downloads.
Required Methods§
Sourcefn activate(&self, release: &ReleaseId) -> Result<(), StageError>
fn activate(&self, release: &ReleaseId) -> Result<(), StageError>
Flip the live pointer to release.
§Errors
Returns StageError::Activate when the pointer cannot be flipped.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".