Skip to main content

Lab

Struct Lab 

Source
pub struct Lab { /* private fields */ }
Expand description

An authored spec, ready to plan.

Implementations§

Source§

impl Lab

Source

pub fn warnings(&self) -> Vec<Warning>

What the spec says that is likely not what its author means, in file order: a daemon a recipe installs with no service step for it (it would start on Debian VMs only). Never a problem: validation passes with warnings.

Source§

impl Lab

Source

pub fn new(source: Spec) -> Lab

The lab of an authored spec.

Source

pub fn parse(yaml: &str) -> Result<Lab, Problems>

The lab of yaml, written in the authored format.

§Errors

The problems that stop the parser, coded and placed.

Source

pub fn with_images(self, images: Table) -> Lab

The lab with the runner’s image table: each VM’s image from it unless the spec’s overrides give one, and the access machine the spec leaves to the runner.

Source

pub fn with_templates(self, texts: BTreeMap<ProjectPath, String>) -> Lab

The lab with the texts of its project’s templates (read by the caller that generates, from Lab::template_paths): the renderers install them filled in. A template whose text isn’t given fails the machine’s configuration where it is applied, saying so.

Source

pub fn template_paths(&self) -> Vec<ProjectPath>

The project files the lab’s steps fill in as templates, each once.

Source

pub fn source(&self) -> &Spec

The spec as written.

Source

pub fn catalogue(&self) -> &'static Catalogue

The catalogue its services resolve in: Isoloom’s own.

Source

pub fn lowered(&self, scope: Scope) -> Lowered

The spec lowered for scope, the image table applied.

Source

pub fn for_target(&self, target: Target) -> Spec

The spec as target runs it.

Source

pub fn spec(&self) -> Spec

The spec as the lab itself: every form, no target’s own facts.

Source

pub fn possible(&self) -> Vec<Target>

The targets every machine has the form for, narrowed by the spec’s targets:.

Source

pub fn refusal(&self, target: Target) -> Option<Problem>

Why target can’t run the lab, found while lowering: the first machine it has no form for, or a VM step it doesn’t render yet, as a refused problem at the field.

Source

pub fn problems(&self) -> Problems

The spec’s problems: its own, then its lowered form’s at the fields the author wrote, in file order.

Source

pub fn problems_with_files(&self, dir: &Path) -> Problems

Lab::problems, and the project paths the spec names that don’t exist in dir.

Trait Implementations§

Source§

impl Clone for Lab

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Lab

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Lab

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Lab

Auto Trait Implementations§

§

impl !Freeze for Lab

§

impl RefUnwindSafe for Lab

§

impl Send for Lab

§

impl Sync for Lab

§

impl Unpin for Lab

§

impl UnsafeUnpin for Lab

§

impl UnwindSafe for Lab

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.