Struct brane_cli::spec::GlobalState
source · pub struct GlobalState {
pub docker_opts: DockerOptions,
pub keep_containers: bool,
pub package_dir: PathBuf,
pub dataset_dir: PathBuf,
pub results_dir: PathBuf,
pub pindex: Arc<PackageIndex>,
pub dindex: Arc<DataIndex>,
pub results: Arc<Mutex<HashMap<String, String>>>,
}
Expand description
The global state for the OfflineVm.
Fields§
§docker_opts: DockerOptions
The information we want to know for Docker
keep_containers: bool
Whether to keep containers after execution or not
package_dir: PathBuf
The path to the directory where packages (and thus container images) are stored for this session.
dataset_dir: PathBuf
The path to the directory where datasets (where we wanna copy results) are stored for this session.
results_dir: PathBuf
The path to the directory where intermediate results will be stored for this session.
pindex: Arc<PackageIndex>
The package index that contains info about each package.
dindex: Arc<DataIndex>
The data index that contains info about each package.
results: Arc<Mutex<HashMap<String, String>>>
A list of results we planned in the previous timestep.
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§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