pub enum DefaultShell {
Bash,
PowerShell,
}Expand description
Default shell exposed to the model for shell-style commands.
Variants§
Implementations§
Source§impl DefaultShell
impl DefaultShell
Sourcepub fn current_platform() -> Self
pub fn current_platform() -> Self
Choose the platform default for the current Rust target.
Sourcepub fn for_target_os(target_os: &str) -> Self
pub fn for_target_os(target_os: &str) -> Self
Choose the platform default for a Rust target_os value.
Trait Implementations§
Source§impl Clone for DefaultShell
impl Clone for DefaultShell
Source§fn clone(&self) -> DefaultShell
fn clone(&self) -> DefaultShell
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultShell
impl Debug for DefaultShell
Source§impl<'de> Deserialize<'de> for DefaultShell
impl<'de> Deserialize<'de> for DefaultShell
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 PartialEq for DefaultShell
impl PartialEq for DefaultShell
Source§impl Serialize for DefaultShell
impl Serialize for DefaultShell
impl Copy for DefaultShell
impl Eq for DefaultShell
impl StructuralPartialEq for DefaultShell
Auto Trait Implementations§
impl Freeze for DefaultShell
impl RefUnwindSafe for DefaultShell
impl Send for DefaultShell
impl Sync for DefaultShell
impl Unpin for DefaultShell
impl UnsafeUnpin for DefaultShell
impl UnwindSafe for DefaultShell
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.