pub struct ObsFader { /* private fields */ }Expand description
Managed OBS fader attached to one source.
Drop removes the native callback before detaching/destroying the fader, and keeps both callback state and the source lease alive until that actor-thread cleanup completes.
Implementations§
Source§impl ObsFader
impl ObsFader
pub fn on_changed(&self) -> SignalReceiver<Decibels>
pub fn set_db(&self, db: Decibels) -> Result<bool, ObsError>
pub fn db(&self) -> Result<Decibels, ObsError>
pub fn set_linear(&self, volume: LinearVolume) -> Result<bool, ObsError>
pub fn linear(&self) -> Result<LinearVolume, ObsError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ObsFader
impl !UnwindSafe for ObsFader
impl Forget for ObsFader
impl Freeze for ObsFader
impl Move for ObsFader
impl Send for ObsFader
impl Sync for ObsFader
impl Unpin for ObsFader
impl UnsafeUnpin for ObsFader
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