pub struct ProfileManager { /* private fields */ }Implementations§
Source§impl ProfileManager
impl ProfileManager
pub fn new(base_dir: PathBuf) -> Self
pub fn profiles_dir(&self) -> PathBuf
Sourcepub fn list_profiles(&self) -> Result<Vec<Profile>>
pub fn list_profiles(&self) -> Result<Vec<Profile>>
Discover all profiles
Sourcepub fn get_profile(&self, name: &str) -> Result<Profile>
pub fn get_profile(&self, name: &str) -> Result<Profile>
Get a specific profile
Sourcepub fn create_profile(&self, name: &str) -> Result<Profile>
pub fn create_profile(&self, name: &str) -> Result<Profile>
Create a new profile
Sourcepub fn remove_profile(&self, name: &str) -> Result<()>
pub fn remove_profile(&self, name: &str) -> Result<()>
Remove a profile
Auto Trait Implementations§
impl Freeze for ProfileManager
impl RefUnwindSafe for ProfileManager
impl Send for ProfileManager
impl Sync for ProfileManager
impl Unpin for ProfileManager
impl UnwindSafe for ProfileManager
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