pub struct P4Output { /* private fields */ }Expand description
Raw stdout/stderr bytes, exit code and timeout flag from a p4 invocation.
Implementations§
Source§impl P4Output
impl P4Output
pub fn exit_code(&self) -> i32
pub fn timed_out(&self) -> bool
pub fn success(&self) -> bool
pub fn stdout(&self) -> &[u8] ⓘ
pub fn stderr(&self) -> &[u8] ⓘ
pub fn stdout_str(&self) -> Result<&str>
pub fn stderr_str(&self) -> Result<&str>
pub fn stdout_lines(&self) -> Result<Vec<&str>>
pub fn stderr_lines(&self) -> Result<Vec<&str>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for P4Output
impl RefUnwindSafe for P4Output
impl Send for P4Output
impl Sync for P4Output
impl Unpin for P4Output
impl UnsafeUnpin for P4Output
impl UnwindSafe for P4Output
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