pub struct ObsServiceRef { /* private fields */ }Expand description
A managed OBS service, such as an RTMP streaming-service configuration.
Implementations§
Trait Implementations§
Source§impl Clone for ObsServiceRef
impl Clone for ObsServiceRef
Source§fn clone(&self) -> ObsServiceRef
fn clone(&self) -> ObsServiceRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObsServiceRef
impl Debug for ObsServiceRef
impl Eq for ObsServiceRef
Source§impl Hash for ObsServiceRef
impl Hash for ObsServiceRef
Source§impl ObsObjectTrait for ObsServiceRef
impl ObsObjectTrait for ObsServiceRef
fn runtime(&self) -> &ObsRuntime
fn settings(&self) -> Result<ImmutableObsData, ObsError>
fn hotkey_data(&self) -> Result<ImmutableObsData, ObsError>
fn id(&self) -> ObsString
fn name(&self) -> ObsString
Source§fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
fn update_settings(&self, settings: ObsData) -> Result<(), ObsError>
Updates the settings of this output. Fails if active.
Source§fn create_updater<'a, T: ObsObjectUpdater<'a, ToUpdate = Self> + Send + Sync>(
&'a mut self,
) -> Result<T, ObsError>
fn create_updater<'a, T: ObsObjectUpdater<'a, ToUpdate = Self> + Send + Sync>( &'a mut self, ) -> Result<T, ObsError>
Updates the object with the current settings.
For examples please take a look at the Github repository.
Auto Trait Implementations§
impl !RefUnwindSafe for ObsServiceRef
impl !UnwindSafe for ObsServiceRef
impl Freeze for ObsServiceRef
impl Send for ObsServiceRef
impl Sync for ObsServiceRef
impl Unpin for ObsServiceRef
impl UnsafeUnpin for ObsServiceRef
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