pub struct Repl {
pub dir: TempDir,
pub stdin: ChildStdin,
pub stdout: Bytes<ChildStdout>,
pub child: Child,
pub eof: Vec<u8>,
}Expand description
Interface to the Node.js REPL. Send code with Repl::run, stop it with Repl::stop.
Fields§
§dir: TempDirNeeds to be held until the working directory should be dropped.
stdin: ChildStdinstdin to the Node.js process.
stdout: Bytes<ChildStdout>stdout from the Node.js process.
child: ChildHandle to the running Node.js process.
eof: Vec<u8>The delimiter used to end one read-eval-print-loop
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Repl
impl RefUnwindSafe for Repl
impl Send for Repl
impl Sync for Repl
impl Unpin for Repl
impl UnwindSafe for Repl
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