pub struct PatternsEngine { /* private fields */ }Implementations§
Source§impl PatternsEngine
impl PatternsEngine
Sourcepub fn with_config(config: &Config) -> Result<Self>
pub fn with_config(config: &Config) -> Result<Self>
Sourcepub fn find_history_commands_from_shell_list(
&self,
shells_context: &Vec<ShellContext>,
) -> Result<ShellCommands>
pub fn find_history_commands_from_shell_list( &self, shells_context: &Vec<ShellContext>, ) -> Result<ShellCommands>
Search sensitive command patterns from the given shell list
§Errors
Will return Err when has an error when find sensitive patterns in a
specific shell
Sourcepub fn find_history_commands(
&self,
state_context: &ShellContext,
) -> Result<Vec<Command>>
pub fn find_history_commands( &self, state_context: &ShellContext, ) -> Result<Vec<Command>>
Auto Trait Implementations§
impl Freeze for PatternsEngine
impl RefUnwindSafe for PatternsEngine
impl Send for PatternsEngine
impl Sync for PatternsEngine
impl Unpin for PatternsEngine
impl UnsafeUnpin for PatternsEngine
impl UnwindSafe for PatternsEngine
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> 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