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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.