pub struct ShellConfigBuilder { /* private fields */ }Implementations§
Source§impl ShellConfigBuilder
impl ShellConfigBuilder
pub fn enabled(self, enabled: bool) -> Self
pub fn allowed_directory<P: Into<PathBuf>>(self, path: P) -> Self
pub fn timeout_ms(self, timeout: u64) -> Self
pub fn forbidden_commands(self, commands: Vec<String>) -> Self
pub fn add_forbidden_command(self, command: String) -> Self
pub fn build(self) -> Result<ShellConfig>
Trait Implementations§
Source§impl Debug for ShellConfigBuilder
impl Debug for ShellConfigBuilder
Source§impl Default for ShellConfigBuilder
impl Default for ShellConfigBuilder
Source§fn default() -> ShellConfigBuilder
fn default() -> ShellConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ShellConfigBuilder
impl RefUnwindSafe for ShellConfigBuilder
impl Send for ShellConfigBuilder
impl Sync for ShellConfigBuilder
impl Unpin for ShellConfigBuilder
impl UnwindSafe for ShellConfigBuilder
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