Struct brane_cli::run::OfflineVmState
source · 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: TempDir
The 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: CompileState
The state of the compiler.
source: String
The associated source string, which we use for debugging.
options: ParserOptions
Any 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