Trait ObsObjectUpdater
pub trait ObsObjectUpdater<'a> {
type ToUpdate: ObsUpdatable;
// 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 get_id() -> ObsString;
}Required Associated Types§
type ToUpdate: ObsUpdatable
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 get_id() -> ObsString
fn get_id() -> ObsString
Returns the ID of the object
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl<'a> ObsObjectUpdater<'a> for AlsaInputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for AlsaInputSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for JackOutputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for JackOutputSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for PipeWireCameraSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PipeWireCameraSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for PipeWireDesktopCaptureSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PipeWireDesktopCaptureSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for PipeWireScreenCaptureSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PipeWireScreenCaptureSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for PipeWireWindowCaptureSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PipeWireWindowCaptureSourceUpdater<'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.
Source§impl<'a> ObsObjectUpdater<'a> for PulseOutputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for PulseOutputSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for V4L2InputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for V4L2InputSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for X11CaptureSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for X11CaptureSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for XCompositeInputSourceUpdater<'a>
Available on Linux only.
impl<'a> ObsObjectUpdater<'a> for XCompositeInputSourceUpdater<'a>
Available on Linux only.
Source§impl<'a> ObsObjectUpdater<'a> for GameCaptureSourceUpdater<'a>
Available on Windows only.
impl<'a> ObsObjectUpdater<'a> for GameCaptureSourceUpdater<'a>
Available on Windows only.
Source§impl<'a> ObsObjectUpdater<'a> for MonitorCaptureSourceUpdater<'a>
Available on Windows only.
impl<'a> ObsObjectUpdater<'a> for MonitorCaptureSourceUpdater<'a>
Available on Windows only.
Source§impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
Available on Windows only.
impl<'a> ObsObjectUpdater<'a> for WindowCaptureSourceUpdater<'a>
Available on Windows only.