pub struct Runner<O: LoggerOutput> { /* private fields */ }Implementations§
Source§impl<O: LoggerOutput> Runner<O>
impl<O: LoggerOutput> Runner<O>
pub fn read_config(&self) -> Result<Config, RunnerError>
pub fn create_pkgs_dir(&mut self) -> Result<PathBuf, RunnerError>
pub fn get_pkgs_dir(&self) -> Result<PathBuf, RunnerError>
Source§impl<O: LoggerOutput> Runner<O>
impl<O: LoggerOutput> Runner<O>
pub fn load_module( &mut self, package: &NamedPackage, trace: Option<&PkgTrace>, ) -> Result<PkgTrace, RunnerError>
Source§impl<O: LoggerOutput> Runner<O>
impl<O: LoggerOutput> Runner<O>
pub fn rollback(&mut self) -> Result<(), RunnerError>
Source§impl<O: LoggerOutput> Runner<O>
impl<O: LoggerOutput> Runner<O>
pub fn unload_module( &mut self, name: &str, trace: &PkgTrace, ) -> Result<(), RunnerError>
Source§impl<O: LoggerOutput> Runner<O>
impl<O: LoggerOutput> Runner<O>
pub fn new(cwd: &Path, output: O) -> Self
pub fn messages(&self) -> &[LogMessage]
pub fn absolute_path_from(&self, path: impl AsRef<Path>) -> PathBuf
pub fn create_dir(&mut self, path: impl AsRef<Path>) -> Result<(), IoError>
pub fn create_symlink( &mut self, src: impl AsRef<Path>, dst: impl AsRef<Path>, ) -> Result<(), IoError>
pub fn remove_dir(&mut self, path: impl AsRef<Path>) -> Result<(), IoError>
pub fn remove_symlink( &mut self, src: impl AsRef<Path>, dst: impl AsRef<Path>, ) -> Result<(), IoError>
Auto Trait Implementations§
impl<O> Freeze for Runner<O>where
O: Freeze,
impl<O> RefUnwindSafe for Runner<O>where
O: RefUnwindSafe,
impl<O> Send for Runner<O>where
O: Send,
impl<O> Sync for Runner<O>where
O: Sync,
impl<O> Unpin for Runner<O>where
O: Unpin,
impl<O> UnwindSafe for Runner<O>where
O: UnwindSafe,
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