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 an optional
stderr-only diagnostic tap; the same bytes are already present once in ordered shell data, so a
terminal renderer must not consume both surfaces.
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