pub enum StdioPuppetRequest {
WritelnStdout {
line: String,
control_handle: StdioPuppetControlHandle,
},
WritelnStderr {
line: String,
control_handle: StdioPuppetControlHandle,
},
}
Expand description
StdioPuppet
is a test interface through which a test controller commands
a puppet to write logs to stdio. This allows the controller to verify stdio
piping.
Variants§
WritelnStdout
Writes |line| to stdout, appending a newline character.
WritelnStderr
Writes |line| to stderr, appending a newline character.
Implementations§
source§impl StdioPuppetRequest
impl StdioPuppetRequest
pub fn into_writeln_stdout(self) -> Option<(String, StdioPuppetControlHandle)>
pub fn into_writeln_stderr(self) -> Option<(String, StdioPuppetControlHandle)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StdioPuppetRequest
impl Send for StdioPuppetRequest
impl Sync for StdioPuppetRequest
impl Unpin for StdioPuppetRequest
impl !UnwindSafe for StdioPuppetRequest
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