pub enum P4StreamEvent {
Stdout(Vec<u8>),
Stderr(Vec<u8>),
Exit(i32),
}Expand description
A single event yielded by P4Stream.
Variants§
Stdout(Vec<u8>)
A chunk of stdout bytes (may be partial line / binary).
Stderr(Vec<u8>)
A chunk of stderr bytes (may be partial line / binary).
Exit(i32)
The process has exited with the given code.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for P4StreamEvent
impl RefUnwindSafe for P4StreamEvent
impl Send for P4StreamEvent
impl Sync for P4StreamEvent
impl Unpin for P4StreamEvent
impl UnsafeUnpin for P4StreamEvent
impl UnwindSafe for P4StreamEvent
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