pub enum CompleteAction {
Show 24 variants
Alias,
ArrayVar,
Binding,
Builtin,
Command,
Directory,
Disabled,
Enabled,
Export,
File,
Function,
Group,
HelpTopic,
HostName,
Job,
Keyword,
Running,
Service,
SetOpt,
ShOpt,
Signal,
Stopped,
User,
Variable,
}Expand description
Type of action to take to generate completion candidates. Each one’s name
(e.g. arrayvar) is what complete -A takes.
Variants§
Alias
Complete with valid aliases.
ArrayVar
Complete with names of array shell variables.
Binding
Complete with names of key bindings.
Builtin
Complete with names of shell builtins.
Command
Complete with names of executable commands.
Directory
Complete with directory names.
Disabled
Complete with names of disabled shell builtins.
Enabled
Complete with names of enabled shell builtins.
Export
Complete with names of exported shell variables.
File
Complete with filenames.
Function
Complete with names of shell functions.
Group
Complete with valid user groups.
HelpTopic
Complete with names of valid shell help topics.
HostName
Complete with the system’s hostname(s).
Job
Complete with the command names of shell-managed jobs.
Keyword
Complete with valid shell keywords.
Running
Complete with the command names of running shell-managed jobs.
Service
Complete with names of system services.
SetOpt
Complete with the names of options settable via set -o.
ShOpt
Complete with the names of options settable via shopt.
Signal
Complete with the names of trappable signals.
Stopped
Complete with the command names of stopped shell-managed jobs.
User
Complete with valid usernames.
Variable
Complete with names of shell variables.
Trait Implementations§
Source§impl Clone for CompleteAction
impl Clone for CompleteAction
impl Copy for CompleteAction
Source§impl Debug for CompleteAction
impl Debug for CompleteAction
Source§impl<'de> Deserialize<'de> for CompleteAction
Available on crate feature serde only.
impl<'de> Deserialize<'de> for CompleteAction
serde only.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>,
Source§impl EnumMessage for CompleteAction
impl EnumMessage for CompleteAction
fn get_message(&self) -> Option<&'static str>
fn get_detailed_message(&self) -> Option<&'static str>
Source§fn get_documentation(&self) -> Option<&'static str>
fn get_documentation(&self) -> Option<&'static str>
fn get_serializations(&self) -> &'static [&'static str]
impl Eq for CompleteAction
Source§impl<'_derivative_strum> From<&'_derivative_strum CompleteAction> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum CompleteAction> for &'static str
Source§fn from(x: &'_derivative_strum CompleteAction) -> &'static str
fn from(x: &'_derivative_strum CompleteAction) -> &'static str
Source§impl From<CompleteAction> for &'static str
impl From<CompleteAction> for &'static str
Source§fn from(x: CompleteAction) -> &'static str
fn from(x: CompleteAction) -> &'static str
Source§impl FromStr for CompleteAction
impl FromStr for CompleteAction
Source§impl IntoEnumIterator for CompleteAction
impl IntoEnumIterator for CompleteAction
type Iterator = CompleteActionIter
fn iter() -> CompleteActionIter ⓘ
Source§impl PartialEq for CompleteAction
impl PartialEq for CompleteAction
Source§impl Serialize for CompleteAction
Available on crate feature serde only.
impl Serialize for CompleteAction
serde only.impl StructuralPartialEq for CompleteAction
Auto Trait Implementations§
impl Freeze for CompleteAction
impl RefUnwindSafe for CompleteAction
impl Send for CompleteAction
impl Sync for CompleteAction
impl Unpin for CompleteAction
impl UnsafeUnpin for CompleteAction
impl UnwindSafe for CompleteAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
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> 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> ⓘ
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> ⓘ
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