pub enum RecordedResponse {
Success,
Exit(i32),
Output {
stdout: Vec<u8>,
code: i32,
},
}Expand description
Scripted responses for RecordingRunner.
Variants§
Success
Exit status 0 with empty stdout/stderr.
Exit(i32)
Exit with the given non-zero code and empty output.
Output
Exit with the given code and stdout payload.
Trait Implementations§
Source§impl Clone for RecordedResponse
impl Clone for RecordedResponse
Auto Trait Implementations§
impl Freeze for RecordedResponse
impl RefUnwindSafe for RecordedResponse
impl Send for RecordedResponse
impl Sync for RecordedResponse
impl Unpin for RecordedResponse
impl UnsafeUnpin for RecordedResponse
impl UnwindSafe for RecordedResponse
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