pub struct BashSessionConfig {
pub cwd: String,
pub permissions: BashPermissionPolicy,
pub env: Option<HashMap<String, String>>,
pub executor: Arc<dyn BashExecutor>,
pub default_inactivity_timeout_ms: Option<u64>,
pub wallclock_backstop_ms: Option<u64>,
pub max_command_length: Option<usize>,
pub max_output_bytes_inline: Option<usize>,
pub max_output_bytes_file: Option<usize>,
pub max_background_jobs: Option<usize>,
pub logical_cwd: Option<LogicalCwd>,
}Fields§
§cwd: String§permissions: BashPermissionPolicy§env: Option<HashMap<String, String>>§executor: Arc<dyn BashExecutor>§default_inactivity_timeout_ms: Option<u64>§wallclock_backstop_ms: Option<u64>§max_command_length: Option<usize>§max_output_bytes_inline: Option<usize>§max_output_bytes_file: Option<usize>§max_background_jobs: Option<usize>§logical_cwd: Option<LogicalCwd>Implementations§
Source§impl BashSessionConfig
impl BashSessionConfig
pub fn new( cwd: impl Into<String>, permissions: BashPermissionPolicy, executor: Arc<dyn BashExecutor>, ) -> Self
pub fn with_logical_cwd_carry(self) -> Self
Trait Implementations§
Source§impl Clone for BashSessionConfig
impl Clone for BashSessionConfig
Source§fn clone(&self) -> BashSessionConfig
fn clone(&self) -> BashSessionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BashSessionConfig
impl !RefUnwindSafe for BashSessionConfig
impl Send for BashSessionConfig
impl Sync for BashSessionConfig
impl Unpin for BashSessionConfig
impl UnsafeUnpin for BashSessionConfig
impl !UnwindSafe for BashSessionConfig
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