Struct goxlr_daemon::settings::SettingsHandle
source · [−]Fields
path: PathBuf
settings: Arc<RwLock<Settings>>
Implementations
sourceimpl SettingsHandle
impl SettingsHandle
pub async fn load(path: PathBuf, data_dir: &Path) -> Result<SettingsHandle>
pub async fn save(&self)
pub async fn get_profile_directory(&self) -> PathBuf
pub async fn get_mic_profile_directory(&self) -> PathBuf
pub async fn get_samples_directory(&self) -> PathBuf
pub async fn get_device_profile_name(
&self,
device_serial: &str
) -> Option<String>
pub async fn get_device_mic_profile_name(
&self,
device_serial: &str
) -> Option<String>
pub async fn get_device_bleep_volume(&self, device_serial: &str) -> Option<i8>
pub async fn set_device_profile_name(
&self,
device_serial: &str,
profile_name: &str
)
pub async fn set_device_mic_profile_name(
&self,
device_serial: &str,
mic_profile_name: &str
)
pub async fn set_device_bleep_volume(
&self,
device_serial: &str,
bleep_volume: i8
)
Trait Implementations
sourceimpl Clone for SettingsHandle
impl Clone for SettingsHandle
sourcefn clone(&self) -> SettingsHandle
fn clone(&self) -> SettingsHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SettingsHandle
impl Send for SettingsHandle
impl Sync for SettingsHandle
impl Unpin for SettingsHandle
impl !UnwindSafe for SettingsHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more