pub struct ShellInstall {
pub should_quit: bool,
/* private fields */
}Fields§
§should_quit: boolImplementations§
Source§impl ShellInstall
impl ShellInstall
pub fn new(force_install: bool) -> Self
Sourcepub fn print(shell: &str) -> Result<(), ProgramError>
pub fn print(shell: &str) -> Result<(), ProgramError>
write on stdout the script building the function for the given shell
Sourcepub fn check(&mut self) -> Result<(), ShellInstallError>
pub fn check(&mut self) -> Result<(), ShellInstallError>
check whether the shell function is installed an up to date, install it if it wasn’t refused before or if broot is launched with –install.
Sourcepub fn comment_error(&self, err: &ShellInstallError)
pub fn comment_error(&self, err: &ShellInstallError)
print some additional information on the error (typically before the error itself is dumped)
pub fn remove(&self, path: &Path) -> Result<(), ShellInstallError>
Auto Trait Implementations§
impl Freeze for ShellInstall
impl RefUnwindSafe for ShellInstall
impl Send for ShellInstall
impl Sync for ShellInstall
impl Unpin for ShellInstall
impl UnwindSafe for ShellInstall
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> 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>
Converts
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>
Converts
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