struct Process {
child: JodChild,
}Expand description
Manages the execution of the proc-macro server process.
Fields§
§child: JodChildImplementations§
Source§impl Process
impl Process
Sourcefn run<'a>(
path: &AbsPath,
env: impl IntoIterator<Item = (impl AsRef<OsStr>, &'a Option<impl 'a + AsRef<OsStr>>)>,
format: Option<&str>,
) -> Result<Process>
fn run<'a>( path: &AbsPath, env: impl IntoIterator<Item = (impl AsRef<OsStr>, &'a Option<impl 'a + AsRef<OsStr>>)>, format: Option<&str>, ) -> Result<Process>
Runs a new proc-macro server process with the specified environment variables.
Sourcefn stdio(&mut self) -> Option<(ChildStdin, BufReader<ChildStdout>)>
fn stdio(&mut self) -> Option<(ChildStdin, BufReader<ChildStdout>)>
Retrieves stdin and stdout handles for the process.
Trait Implementations§
Source§impl ProcessExit for Process
impl ProcessExit for Process
fn exit_err(&mut self) -> Option<ServerError>
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more