pub struct Builder {
pub root: PathBuf,
pub target_dir: PathBuf,
pub pyroduct_dep: Dependency,
pub config: PyroductConfig,
pub build_slots: usize,
pub cache_manager: Arc<CacheManager>,
}Fields§
§root: PathBuf§target_dir: PathBuf§pyroduct_dep: Dependency§config: PyroductConfig§build_slots: usize§cache_manager: Arc<CacheManager>Implementations§
Source§impl Builder
impl Builder
pub async fn new( root: &Path, config: PyroductConfig, cache_manager: Arc<CacheManager>, ) -> Result<Self, CacheError>
pub async fn from_env( cache_manager: Arc<CacheManager>, ) -> Result<Self, CacheError>
pub async fn compile_anon( &self, playbook: &AnonPlaybook, ) -> Result<PlaybookBinary, BuildError>
pub async fn compile( &self, source: &PlaybookSource, ) -> Result<PlaybookBinary, BuildError>
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin for Builder
impl UnwindSafe for Builder
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