Struct brane_cli::run::DummyVmState
source · pub struct DummyVmState {
pub pindex: Arc<PackageIndex>,
pub dindex: Arc<DataIndex>,
pub state: CompileState,
pub source: String,
pub options: ParserOptions,
pub vm: Option<DummyVm>,
}
Expand description
A helper struct that contains what we need to know about a compiler + VM state for the dummy use-case.
Fields§
§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<DummyVm>
The state of the VM, i.e., the VM. This is wrapped in an ‘Option’ so we can easily take it if the DummyVmState is only mutably borrowed.
Auto Trait Implementations§
impl Freeze for DummyVmState
impl RefUnwindSafe for DummyVmState
impl Send for DummyVmState
impl Sync for DummyVmState
impl Unpin for DummyVmState
impl UnwindSafe for DummyVmState
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