pub enum Stdio {
Inherit,
Null,
File(PathBuf),
Pipe,
}
Available on crate feature
default
only.Expand description
Variants§
Inherit
The Command
’s Stream
inherits from the benchmark runner.
Null
This stream will be ignored. This is the equivalent of attaching the stream to /dev/null
File(PathBuf)
Redirect the content of a file into this Stream
. This is equivalent to a redirection in a
shell for example for the Stdout
of my-command
: my-command > some_file
Pipe
A new pipe should be arranged to connect the benchmark runner and the Command
Trait Implementations§
source§impl<'de> Deserialize<'de> for Stdio
impl<'de> Deserialize<'de> for Stdio
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stdio, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stdio, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Stdio
impl Serialize for Stdio
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Stdio
impl StructuralPartialEq for Stdio
Auto Trait Implementations§
impl Freeze for Stdio
impl RefUnwindSafe for Stdio
impl Send for Stdio
impl Sync for Stdio
impl Unpin for Stdio
impl UnwindSafe for Stdio
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)