Struct brane_exe::dummy::DummyState
source · pub struct DummyState {
pub workflow: Option<Arc<Workflow>>,
pub results: Arc<Mutex<HashMap<String, String>>>,
pub text: Arc<Mutex<String>>,
}
Expand description
Defines the global, shared state for the DummyVm.
Fields§
§workflow: Option<Arc<Workflow>>
The workflow we are executing.
results: Arc<Mutex<HashMap<String, String>>>
The list of results we previously “planned”.
text: Arc<Mutex<String>>
The text to buffer when writing to stdout.
It looks overkill to have a mutex here, but this is required in the test of thread.rs
due to it not using a wrapping VM.
Trait Implementations§
source§impl Clone for DummyState
impl Clone for DummyState
source§fn clone(&self) -> DummyState
fn clone(&self) -> DummyState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DummyState
impl Debug for DummyState
impl CustomGlobalState for DummyState
Auto Trait Implementations§
impl Freeze for DummyState
impl RefUnwindSafe for DummyState
impl Send for DummyState
impl Sync for DummyState
impl Unpin for DummyState
impl UnwindSafe for DummyState
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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