pub enum AgentSelector {
All,
Detected,
Named(String),
}Expand description
Names one agent, or a group of them, as --agent accepts it.
The two group words cannot be agent names, which is why this is its own
type rather than a list of Agent.
Variants§
All
Every agent the installer offers, present or not.
Detected
The agents whose directory is already there. Falls back to
AgentSelector::All when it finds none.
Named(String)
One agent, by name.
Implementations§
Source§impl AgentSelector
impl AgentSelector
Sourcepub fn parse_list(value: &str) -> impl Iterator<Item = Self> + '_
pub fn parse_list(value: &str) -> impl Iterator<Item = Self> + '_
Reads a --agent value, which may be a comma separated list.
Empty entries are dropped, so --agent "" selects nothing rather than
naming an agent called “”.
Trait Implementations§
Source§impl Clone for AgentSelector
impl Clone for AgentSelector
Source§impl Debug for AgentSelector
impl Debug for AgentSelector
Source§impl Display for AgentSelector
impl Display for AgentSelector
impl Eq for AgentSelector
Source§impl From<&Agent> for AgentSelector
impl From<&Agent> for AgentSelector
Source§impl PartialEq for AgentSelector
impl PartialEq for AgentSelector
impl StructuralPartialEq for AgentSelector
Auto Trait Implementations§
impl Freeze for AgentSelector
impl RefUnwindSafe for AgentSelector
impl Send for AgentSelector
impl Sync for AgentSelector
impl Unpin for AgentSelector
impl UnsafeUnpin for AgentSelector
impl UnwindSafe for AgentSelector
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