pub struct Microsandbox { /* private fields */ }Expand description
The microsandbox configuration.
Implementations§
Source§impl Microsandbox
impl Microsandbox
Sourcepub fn get_modules(&self) -> &HashMap<String, Module>
pub fn get_modules(&self) -> &HashMap<String, Module>
The modules to import.
Sourcepub fn get_builds(&self) -> &HashMap<String, Build>
pub fn get_builds(&self) -> &HashMap<String, Build>
The builds to run.
Sourcepub fn get_sandboxes(&self) -> &HashMap<String, Sandbox>
pub fn get_sandboxes(&self) -> &HashMap<String, Sandbox>
The sandboxes to run.
Sourcepub fn get_groups(&self) -> &HashMap<String, Group>
pub fn get_groups(&self) -> &HashMap<String, Group>
The groups to run the sandboxes in.
Source§impl Microsandbox
impl Microsandbox
Sourcepub const MAX_DEPENDENCY_DEPTH: usize = 32usize
pub const MAX_DEPENDENCY_DEPTH: usize = 32usize
The maximum sandbox dependency chain length.
Sourcepub fn get_sandbox(&self, sandbox_name: &str) -> Option<&Sandbox>
pub fn get_sandbox(&self, sandbox_name: &str) -> Option<&Sandbox>
Get a sandbox by name in this configuration
Sourcepub fn get_group(&self, group_name: &str) -> Option<&Group>
pub fn get_group(&self, group_name: &str) -> Option<&Group>
Get a group by name in this configuration
Sourcepub fn get_build(&self, build_name: &str) -> Option<&Build>
pub fn get_build(&self, build_name: &str) -> Option<&Build>
Get a build by name in this configuration
Sourcepub fn validate(&self) -> MicrosandboxResult<()>
pub fn validate(&self) -> MicrosandboxResult<()>
Validates the configuration.
Sourcepub fn builder() -> MicrosandboxBuilder
pub fn builder() -> MicrosandboxBuilder
Returns a builder for the Microsandbox configuration.
See MicrosandboxBuilder for options.
Trait Implementations§
Source§impl Clone for Microsandbox
impl Clone for Microsandbox
Source§fn clone(&self) -> Microsandbox
fn clone(&self) -> Microsandbox
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 Microsandbox
impl Debug for Microsandbox
Source§impl Default for Microsandbox
impl Default for Microsandbox
Source§fn default() -> Microsandbox
fn default() -> Microsandbox
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Microsandbox
impl<'de> Deserialize<'de> for Microsandbox
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Microsandbox
impl PartialEq for Microsandbox
Source§impl Serialize for Microsandbox
impl Serialize for Microsandbox
impl StructuralPartialEq for Microsandbox
Auto Trait Implementations§
impl Freeze for Microsandbox
impl RefUnwindSafe for Microsandbox
impl Send for Microsandbox
impl Sync for Microsandbox
impl Unpin for Microsandbox
impl UnwindSafe for Microsandbox
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§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more