pub trait Confirm {
// Required method
fn confirm(&mut self, warning: &Warning) -> Result<bool>;
}Expand description
Decides whether the irreversible half of lock may go ahead.
An injected decision rather than a flag, so the interactive path is exercised by tests instead of being the one branch nothing covers.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".