pub struct ObsDataUpdater { /* private fields */ }
Expand description
Important: Make sure to call update()
after setting the values.
This will apply the changes to the ObsData
object.
Implementations§
Source§impl ObsDataUpdater
impl ObsDataUpdater
pub fn set_string_ref( &mut self, key: impl Into<ObsString>, value: impl Into<ObsString>, )
pub fn set_string( self, key: impl Into<ObsString>, value: impl Into<ObsString>, ) -> Self
pub fn set_int_ref(&mut self, key: impl Into<ObsString>, value: i64)
pub fn set_int(self, key: impl Into<ObsString>, value: i64) -> Self
pub fn set_bool_ref(&mut self, key: impl Into<ObsString>, value: bool)
pub fn set_bool(self, key: impl Into<ObsString>, value: bool) -> Self
pub async fn update(self) -> Result<(), ObsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ObsDataUpdater
impl !RefUnwindSafe for ObsDataUpdater
impl Send for ObsDataUpdater
impl Sync for ObsDataUpdater
impl Unpin for ObsDataUpdater
impl !UnwindSafe for ObsDataUpdater
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