pub struct ObsSceneRef { /* private fields */ }
Implementations§
Source§impl ObsSceneRef
impl ObsSceneRef
pub fn name(&self) -> &ObsString
pub fn sources(&self) -> &Arc<RwLock<Vec<ObsSourceRef>>>
pub fn signals(&self) -> &Arc<ObsSceneSignals>
pub fn sources_mut(&mut self) -> &mut Arc<RwLock<Vec<ObsSourceRef>>>
Source§impl ObsSceneRef
impl ObsSceneRef
pub async fn add_and_set(&self, channel: u32) -> Result<(), ObsError>
👎Deprecated: Use ObsSceneRef::set_to_channel instead
pub async fn set_to_channel(&self, channel: u32) -> Result<(), ObsError>
pub async fn get_scene_source_ptr( &self, ) -> Result<Sendable<*mut obs_source_t>, ObsError>
pub async fn add_source( &mut self, info: SourceInfo, ) -> Result<ObsSourceRef, ObsError>
pub async fn get_source_by_index(&self, index: usize) -> Option<ObsSourceRef>
pub async fn get_source_mut(&self, name: &str) -> Option<ObsSourceRef>
pub async fn remove_source( &mut self, source: &ObsSourceRef, ) -> Result<(), ObsError>
pub fn as_ptr(&self) -> Sendable<*mut obs_scene_t>
Trait Implementations§
Source§impl Clone for ObsSceneRef
impl Clone for ObsSceneRef
Source§fn clone(&self) -> ObsSceneRef
fn clone(&self) -> ObsSceneRef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ObsSceneRef
impl !RefUnwindSafe for ObsSceneRef
impl Send for ObsSceneRef
impl Sync for ObsSceneRef
impl Unpin for ObsSceneRef
impl !UnwindSafe for ObsSceneRef
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