pub struct Configured<'a> { /* private fields */ }Expand description
One machine’s recipe as its renderers read it: the environment the machine is planned in (its addresses on the target, which its templates name) and its name.
Implementations§
Source§impl<'a> Configured<'a>
impl<'a> Configured<'a>
Sourcepub fn of(env: &'a Environment, machine: &'a str) -> Option<Configured<'a>>
pub fn of(env: &'a Environment, machine: &'a str) -> Option<Configured<'a>>
Machine machine of env, when it has a recipe.
Sourcepub fn template(&self, from: &ProjectPath) -> Result<String, String>
pub fn template(&self, from: &ProjectPath) -> Result<String, String>
Template from filled in for the machine on its target.
§Errors
Why it can’t be: its text wasn’t read when the files were generated, or a placeholder
names nothing the lab has (isoloom validate reports that first), as the line a recipe
fails with.
Trait Implementations§
Source§impl<'a> Clone for Configured<'a>
impl<'a> Clone for Configured<'a>
impl<'a> Copy for Configured<'a>
Auto Trait Implementations§
impl<'a> Freeze for Configured<'a>
impl<'a> RefUnwindSafe for Configured<'a>
impl<'a> Send for Configured<'a>
impl<'a> Sync for Configured<'a>
impl<'a> Unpin for Configured<'a>
impl<'a> UnsafeUnpin for Configured<'a>
impl<'a> UnwindSafe for Configured<'a>
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