pub struct Profiles<'a> { /* private fields */ }
Expand description
API functions related to profiles.
Implementations§
source§impl<'a> Profiles<'a>
impl<'a> Profiles<'a>
sourcepub async fn set_current(&self, name: &str) -> Result<()>
pub async fn set_current(&self, name: &str) -> Result<()>
Switches to a profile.
sourcepub async fn create(&self, name: &str) -> Result<()>
pub async fn create(&self, name: &str) -> Result<()>
Creates a new profile, switching to it in the process.
sourcepub async fn remove(&self, name: &str) -> Result<()>
pub async fn remove(&self, name: &str) -> Result<()>
Removes a profile. If the current profile is chosen, it will change to a different profile first.
sourcepub async fn parameter(
&self,
category: &str,
name: &str
) -> Result<ProfileParameter>
pub async fn parameter( &self, category: &str, name: &str ) -> Result<ProfileParameter>
Gets a parameter from the current profile’s configuration.
sourcepub async fn set_parameter(&self, parameter: SetParameter<'_>) -> Result<()>
pub async fn set_parameter(&self, parameter: SetParameter<'_>) -> Result<()>
Sets the value of a parameter in the current profile’s configuration.
Auto Trait Implementations§
impl<'a> Freeze for Profiles<'a>
impl<'a> !RefUnwindSafe for Profiles<'a>
impl<'a> Send for Profiles<'a>
impl<'a> Sync for Profiles<'a>
impl<'a> Unpin for Profiles<'a>
impl<'a> !UnwindSafe for Profiles<'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