#[non_exhaustive]pub struct CommandRun {
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub exit: Option<i32>,
}Expand description
Captured result from the official SDK command escape hatch.
crate::Rmux::cmd runs the rmux binary with an endpoint selector
injected by the SDK. Non-zero process exits are returned here rather than
converted into SDK errors so callers can implement tmux-style command
wrappers with precise stdout, stderr, and status handling.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stdout: Vec<u8>Captured stdout bytes.
stderr: Vec<u8>Captured stderr bytes.
exit: Option<i32>Process exit code, or None when the process terminated without a
platform exit code.
Trait Implementations§
Source§impl Clone for CommandRun
impl Clone for CommandRun
Source§fn clone(&self) -> CommandRun
fn clone(&self) -> CommandRun
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandRun
impl Debug for CommandRun
Source§impl<'de> Deserialize<'de> for CommandRun
impl<'de> Deserialize<'de> for CommandRun
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CommandRun
Source§impl PartialEq for CommandRun
impl PartialEq for CommandRun
Source§fn eq(&self, other: &CommandRun) -> bool
fn eq(&self, other: &CommandRun) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommandRun
impl Serialize for CommandRun
impl StructuralPartialEq for CommandRun
Auto Trait Implementations§
impl Freeze for CommandRun
impl RefUnwindSafe for CommandRun
impl Send for CommandRun
impl Sync for CommandRun
impl Unpin for CommandRun
impl UnsafeUnpin for CommandRun
impl UnwindSafe for CommandRun
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