pub struct ManagerCommandOutput {
pub status: Option<i32>,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
Bounded output of one manager command invocation.
The canonical service-side name states that this is a manager command
output. The former CommandOutput spelling survives as the type alias
CommandOutput, so existing explicit-path callers and existing
CommandExecutor implementations keep compiling.
Fields§
§status: Option<i32>Process exit status code, when waited.
stdout: Vec<u8>Captured stdout (bounded).
stderr: Vec<u8>Captured stderr (bounded).
Implementations§
Source§impl ManagerCommandOutput
impl ManagerCommandOutput
Sourcepub fn stdout_text(&self) -> String
pub fn stdout_text(&self) -> String
Stdout as lossy UTF-8 (manager output is ASCII/UTF-8 in practice).
Sourcepub fn stderr_text(&self) -> String
pub fn stderr_text(&self) -> String
Stderr as lossy UTF-8.
Trait Implementations§
Source§impl Clone for ManagerCommandOutput
impl Clone for ManagerCommandOutput
Source§impl Debug for ManagerCommandOutput
impl Debug for ManagerCommandOutput
impl Eq for ManagerCommandOutput
Source§impl PartialEq for ManagerCommandOutput
impl PartialEq for ManagerCommandOutput
impl StructuralPartialEq for ManagerCommandOutput
Auto Trait Implementations§
impl Freeze for ManagerCommandOutput
impl RefUnwindSafe for ManagerCommandOutput
impl Send for ManagerCommandOutput
impl Sync for ManagerCommandOutput
impl Unpin for ManagerCommandOutput
impl UnsafeUnpin for ManagerCommandOutput
impl UnwindSafe for ManagerCommandOutput
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