pub struct RunState<G: CustomGlobalState> {
pub fstack: FrameStack,
pub global: Arc<RwLock<G>>,
}
Expand description
Defines whatever we need to remember w.r.t. runtime in between two submission of part of a workflow (i.e., repl-runs).
§Generic types
C
: The custom state with which to extend this RunState.
Fields§
§fstack: FrameStack
The Variable Register that contains previously defined variables.
global: Arc<RwLock<G>>
The custom part of the RunState that is global across all threads in a workflow.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<G> Freeze for RunState<G>
impl<G> RefUnwindSafe for RunState<G>
impl<G> Send for RunState<G>
impl<G> Sync for RunState<G>
impl<G> Unpin for RunState<G>
impl<G> UnwindSafe for RunState<G>
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