pub struct JavaRedirect { /* private fields */ }Expand description
I/O redirection options for a Java process.
Use the builder methods to specify files for stdout, stderr, and stdin. If a stream is not redirected, it will inherit the parent’s corresponding stream (i.e., print to console or read from keyboard).
Implementations§
Source§impl JavaRedirect
impl JavaRedirect
Sourcepub fn output(self, path: impl AsRef<Path>) -> Self
pub fn output(self, path: impl AsRef<Path>) -> Self
Redirects the Java process’s standard output to the given file. The file will be created (or truncated) before execution.
Trait Implementations§
Source§impl Debug for JavaRedirect
impl Debug for JavaRedirect
Source§impl Default for JavaRedirect
impl Default for JavaRedirect
Source§fn default() -> JavaRedirect
fn default() -> JavaRedirect
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for JavaRedirect
impl RefUnwindSafe for JavaRedirect
impl Send for JavaRedirect
impl Sync for JavaRedirect
impl Unpin for JavaRedirect
impl UnsafeUnpin for JavaRedirect
impl UnwindSafe for JavaRedirect
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