pub struct OfflineVmState {
pub results_dir: TempDir,
pub pindex: Arc<PackageIndex>,
pub dindex: Arc<DataIndex>,
pub state: CompileState,
pub source: String,
pub options: ParserOptions,
pub vm: Option<OfflineVm>,
}Expand description
A helper struct that contains what we need to know about a compiler + VM state for the offline use-case.
Fields§
§results_dir: TempDirThe temporary directory where we store results.
pindex: Arc<PackageIndex>The package index for this session.
dindex: Arc<DataIndex>The data index for this session.
state: CompileStateThe state of the compiler.
source: StringThe associated source string, which we use for debugging.
options: ParserOptionsAny compiler options we apply.
vm: Option<OfflineVm>The state of the VM, i.e., the VM. This is wrapped in an ‘Option’ so we can easily take it if the OfflineVmState is only mutably borrowed.
Auto Trait Implementations§
impl Freeze for OfflineVmState
impl RefUnwindSafe for OfflineVmState
impl Send for OfflineVmState
impl Sync for OfflineVmState
impl Unpin for OfflineVmState
impl UnwindSafe for OfflineVmState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request