pub struct GlobalState {
pub node_config_path: PathBuf,
pub app_id: AppId,
pub proxy: Arc<ProxyClient>,
pub infra: Option<InfraFile>,
pub workflow: Option<String>,
pub tx: Option<Arc<Sender<Result<ExecuteReply, Status>>>>,
}
Expand description
The global state for the RemoteVm.
Fields§
§node_config_path: PathBuf
The path to the configuration for this node’s environment. For us, contains the path to the infra.yml and (optional) secrets.yml files.
app_id: AppId
The application identifier for this session.
proxy: Arc<ProxyClient>
The (shared) proxy client we use to communicate, well, through proxies.
infra: Option<InfraFile>
The infra file for this session, which will be loaded when a new snippet is executed.
workflow: Option<String>
The workflow for this session, which will be updated when a new one is received.
tx: Option<Arc<Sender<Result<ExecuteReply, Status>>>>
The callback for the client to receive prints and other status updates on (such as the final result).
Note that this value is updated for every new connection the client makes.
Trait Implementations§
Source§impl Clone for GlobalState
impl Clone for GlobalState
Source§fn clone(&self) -> GlobalState
fn clone(&self) -> GlobalState
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 GlobalState
impl Debug for GlobalState
impl CustomGlobalState for GlobalState
Auto Trait Implementations§
impl Freeze for GlobalState
impl RefUnwindSafe for GlobalState
impl Send for GlobalState
impl Sync for GlobalState
impl Unpin for GlobalState
impl UnwindSafe for GlobalState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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