pub struct UninstallOptions {
pub keep_rocm: bool,
pub yes: bool,
pub purge_mlstack_dir: bool,
pub sudo_password: Option<String>,
}Expand description
Options for uninstall_stack.
Fields§
§keep_rocm: boolKeep ROCm/amdgpu system packages and /opt/rocm (only remove Python +
env/registry). Useful when reinstalling just the Python stack.
yes: boolSkip the interactive confirmation prompt.
purge_mlstack_dir: boolAlso remove the ~/.mlstack/ data root (logs, cache, global venv).
Off by default — preserves logs/diagnostics across reinstalls.
sudo_password: Option<String>Optional sudo password for the privileged steps (system-package purge,
/opt/rocm removal). When set, privileged commands run via sudo -A
with an askpass helper so they work without a TTY or cached credentials
(which sudo -n cannot). When unset, falls back to sudo -n.
Trait Implementations§
Source§impl Clone for UninstallOptions
impl Clone for UninstallOptions
Source§impl Debug for UninstallOptions
impl Debug for UninstallOptions
Auto Trait Implementations§
impl Freeze for UninstallOptions
impl RefUnwindSafe for UninstallOptions
impl Send for UninstallOptions
impl Sync for UninstallOptions
impl Unpin for UninstallOptions
impl UnsafeUnpin for UninstallOptions
impl UnwindSafe for UninstallOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more