pub trait ObsObjectUpdater<'a> {
type ToUpdate: ObsObjectTrait;
// Required methods
fn create_update(
runtime: ObsRuntime,
updatable: &'a mut Self::ToUpdate,
) -> Result<Self, ObsError>
where Self: Sized;
fn get_settings(&self) -> &ObsData;
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater;
fn update(self) -> Result<(), ObsError>;
fn runtime(&self) -> &ObsRuntime;
fn get_id() -> ObsString;
}Expand description
A trait that is used to represent any struct than can update an OBS object.
This can be for example a ´WindowSourceUpdater´, which updates the settings of the WindowSourceRef, when
the update method is called.
Required Associated Types§
type ToUpdate: ObsObjectTrait
Required Methods§
fn create_update(
runtime: ObsRuntime,
updatable: &'a mut Self::ToUpdate,
) -> Result<Self, ObsError>where
Self: Sized,
fn get_settings(&self) -> &ObsData
fn get_settings_updater(&mut self) -> &mut ObsDataUpdater
fn update(self) -> Result<(), ObsError>
fn runtime(&self) -> &ObsRuntime
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<'a> ObsObjectUpdater<'a> for AlsaInputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for AlsaInputSourceUpdater<'a>
Available on Linux only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for GameCaptureSourceUpdater<'a>
Available on Windows only.
impl<'a> ObsObjectUpdater<'a> for GameCaptureSourceUpdater<'a>
Available on Windows only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for JackOutputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for JackOutputSourceUpdater<'a>
Available on Linux only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for MonitorCaptureSourceUpdater<'a>
Available on Windows only.
impl<'a> ObsObjectUpdater<'a> for MonitorCaptureSourceUpdater<'a>
Available on Windows only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for ObsPipeWireGeneralUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for ObsPipeWireGeneralUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for PulseInputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PulseInputSourceUpdater<'a>
Available on Linux only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for PulseOutputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PulseOutputSourceUpdater<'a>
Available on Linux only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for V4L2InputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for V4L2InputSourceUpdater<'a>
Available on Linux only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
Available on Windows only.
impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
Available on Windows only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for X11CaptureSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for X11CaptureSourceUpdater<'a>
Available on Linux only.
type ToUpdate = ObsSourceRef
Source§impl<'a> ObsObjectUpdater<'a> for XCompositeInputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for XCompositeInputSourceUpdater<'a>
Available on Linux only.