pub struct BashConfig { /* private fields */ }Expand description
Bounded process execution configuration owned by the host.
Implementations§
Source§impl BashConfig
impl BashConfig
Sourcepub fn new(
shell: BashShell,
output_directory: BashOutputDirectory,
timeout: Duration,
) -> Result<Self, FileToolError>
pub fn new( shell: BashShell, output_directory: BashOutputDirectory, timeout: Duration, ) -> Result<Self, FileToolError>
Creates process configuration with a non-zero timeout up to 120 seconds.
§Errors
Rejects zero or greater-than-24-hour timeouts.
Trait Implementations§
Source§impl Clone for BashConfig
impl Clone for BashConfig
Auto Trait Implementations§
impl Freeze for BashConfig
impl RefUnwindSafe for BashConfig
impl Send for BashConfig
impl Sync for BashConfig
impl Unpin for BashConfig
impl UnsafeUnpin for BashConfig
impl UnwindSafe for BashConfig
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