pub struct OpenShellOptions {
pub command: Option<String>,
pub args: Vec<String>,
pub env: BTreeMap<String, String>,
pub cwd: Option<String>,
pub cols: Option<u16>,
pub rows: Option<u16>,
pub on_stderr: Option<OutputCallback>,
}Expand description
Options for open_shell.
on_stderr mirrors the TS OpenShellOptions.onStderr raw-byte callback: it is the dedicated
path stderr reaches the caller (stderr is never fanned into the data stream). It is seeded into
the stderr fan-out at open time, matching the TS stderrHandlers.add(options.onStderr) behavior.
Fields§
§command: Option<String>§args: Vec<String>§env: BTreeMap<String, String>§cwd: Option<String>§cols: Option<u16>§rows: Option<u16>§on_stderr: Option<OutputCallback>Trait Implementations§
Source§impl Default for OpenShellOptions
impl Default for OpenShellOptions
Source§fn default() -> OpenShellOptions
fn default() -> OpenShellOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OpenShellOptions
impl !Sync for OpenShellOptions
impl !UnwindSafe for OpenShellOptions
impl Freeze for OpenShellOptions
impl Send for OpenShellOptions
impl Unpin for OpenShellOptions
impl UnsafeUnpin for OpenShellOptions
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