pub struct GenerateSession { /* private fields */ }Expand description
Tracks state for a generate session.
Implementations§
Source§impl GenerateSession
impl GenerateSession
pub fn new(repo_root: PathBuf) -> Self
pub fn repo_root(&self) -> &Path
pub fn write_module_yaml( &mut self, name: &str, content: &str, ) -> Result<PathBuf, CfgdError>
pub fn write_profile_yaml( &mut self, name: &str, content: &str, ) -> Result<PathBuf, CfgdError>
pub fn list_generated(&self) -> Vec<&GeneratedItem>
pub fn get_existing_modules(&self) -> Result<Vec<String>, CfgdError>
pub fn get_existing_profiles(&self) -> Result<Vec<String>, CfgdError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenerateSession
impl RefUnwindSafe for GenerateSession
impl Send for GenerateSession
impl Sync for GenerateSession
impl Unpin for GenerateSession
impl UnsafeUnpin for GenerateSession
impl UnwindSafe for GenerateSession
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