pub struct Shell { /* private fields */ }Expand description
Information about the detected shell.
Implementations§
Source§impl Shell
impl Shell
Sourcepub fn detect() -> Result<Self>
pub fn detect() -> Result<Self>
§Errors
Returns an error if the parent process chain cannot be read or if no known shell is found within the hop limit.
Sourcepub const fn supported_shells() -> &'static [&'static str]
pub const fn supported_shells() -> &'static [&'static str]
Returns the list of supported shell names.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnsafeUnpin for Shell
impl UnwindSafe for Shell
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