Struct shrs::ShellBuilder
source · pub struct ShellBuilder { /* private fields */ }Expand description
Builder for ShellConfig.
Implementations§
source§impl ShellBuilder
impl ShellBuilder
sourcepub fn with_hooks(self, value: Hooks) -> Self
pub fn with_hooks(self, value: Hooks) -> Self
Runtime hooks, see Hooks
sourcepub fn with_builtins(self, value: Builtins) -> Self
pub fn with_builtins(self, value: Builtins) -> Self
Builtin shell commands, see Builtins
sourcepub fn with_alias(self, value: Alias) -> Self
pub fn with_alias(self, value: Alias) -> Self
Aliases, see Alias
sourcepub fn with_theme(self, value: Theme) -> Self
pub fn with_theme(self, value: Theme) -> Self
Color theme
sourcepub fn build(self) -> Result<ShellConfig, ShellBuilderError>
pub fn build(self) -> Result<ShellConfig, ShellBuilderError>
source§impl ShellBuilder
impl ShellBuilder
pub fn with_plugin<P: Any + Plugin>(self, plugin: P) -> Self
pub fn with_state<T: 'static>(self, state: T) -> Self
pub fn with_lang(self, lang: impl Lang + 'static) -> Self
pub fn with_readline(self, line: impl Readline + 'static) -> Self
pub fn with_history( self, history: impl History<HistoryItem = String> + 'static ) -> Self
pub fn with_keybinding(self, keybinding: impl Keybinding + 'static) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ShellBuilder
impl !Send for ShellBuilder
impl !Sync for ShellBuilder
impl Unpin for ShellBuilder
impl !UnwindSafe for ShellBuilder
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