pub enum CascadeMode {
Basic,
Cascade,
CascadeWithConfigs,
}Expand description
What: Removal cascade level controlling which pacman remove flags are used.
Inputs:
- Passed to
install::build_remove_command().
Output:
- Maps to the pacman flag sequence via
flag().
Details:
Basic:pacman -R— remove targets only.Cascade:pacman -Rs— remove targets and now-orphaned dependencies.CascadeWithConfigs:pacman -Rns— cascade removal and prune configuration files.
Variants§
Basic
pacman -R – remove targets only.
Cascade
pacman -Rs – remove targets and orphaned dependencies.
CascadeWithConfigs
pacman -Rns – cascade removal and prune configuration files.
Implementations§
Source§impl CascadeMode
impl CascadeMode
Sourcepub const fn flag(self) -> &'static str
pub const fn flag(self) -> &'static str
What: Return the pacman flag sequence corresponding to this cascade mode.
Inputs: None.
Output: "-R", "-Rs", or "-Rns".
Details: Used directly as the first pacman argument in remove commands.
Sourcepub const fn description(self) -> &'static str
pub const fn description(self) -> &'static str
What: Short text describing the effect of this cascade mode.
Inputs: None.
Output: Human-readable description string.
Details: Suitable for confirmation prompts in calling applications.
Trait Implementations§
Source§impl Clone for CascadeMode
impl Clone for CascadeMode
Source§fn clone(&self) -> CascadeMode
fn clone(&self) -> CascadeMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CascadeMode
Source§impl Debug for CascadeMode
impl Debug for CascadeMode
Source§impl<'de> Deserialize<'de> for CascadeMode
impl<'de> Deserialize<'de> for CascadeMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CascadeMode
impl Display for CascadeMode
impl Eq for CascadeMode
Source§impl PartialEq for CascadeMode
impl PartialEq for CascadeMode
Source§impl Serialize for CascadeMode
impl Serialize for CascadeMode
impl StructuralPartialEq for CascadeMode
Auto Trait Implementations§
impl Freeze for CascadeMode
impl RefUnwindSafe for CascadeMode
impl Send for CascadeMode
impl Sync for CascadeMode
impl Unpin for CascadeMode
impl UnsafeUnpin for CascadeMode
impl UnwindSafe for CascadeMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.