Skip to main content

UserInteractor

Trait UserInteractor 

Source
pub trait UserInteractor {
    // Required method
    fn confirm_upgrade(&self, current: &str, target: &str) -> bool;
}
Expand description

Trait for user interaction. Implementations provide interactive confirmation or auto-accept in non-interactive mode.

Required Methods§

Source

fn confirm_upgrade(&self, current: &str, target: &str) -> bool

Ask the user to confirm the upgrade from current to target. Returns true if confirmed, false if declined.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§