pub struct GitOutput {
pub status: Option<i32>,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
Outcome of a git invocation.
status is None when git could not be spawned at all (e.g. ENOENT, a
nonexistent cwd, permission denied); the reason is surfaced into stderr,
so callers have one channel for both git’s own errors and spawn failures.
stdout and
stderr are raw bytes — callers that read file contents out of git
(git show) need the undecoded buffer, not a lossy UTF-8 string.
Fields§
§status: Option<i32>§stdout: Vec<u8>§stderr: Vec<u8>Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitOutput
impl RefUnwindSafe for GitOutput
impl Send for GitOutput
impl Sync for GitOutput
impl Unpin for GitOutput
impl UnsafeUnpin for GitOutput
impl UnwindSafe for GitOutput
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