pub struct VideoCompositorHandle { /* private fields */ }Expand description
A cheaply cloneable handle for adding and removing compositor inputs.
It mirrors crate::elements::MixerHandle, but each registration also
returns a VideoLayerHandle for changing that input’s placement.
Implementations§
Source§impl VideoCompositorHandle
impl VideoCompositorHandle
Sourcepub fn add_source(
&self,
name: impl Into<String>,
layer: VideoLayer,
) -> Result<Option<VideoCompositorInput>, VideoCompositorError>
pub fn add_source( &self, name: impl Into<String>, layer: VideoLayer, ) -> Result<Option<VideoCompositorInput>, VideoCompositorError>
Registers an input and returns its terminal Sink plus independent
runtime layer control. Reusing name replaces the old registration;
old sinks and layer handles become harmlessly stale.
Sourcepub fn remove_source(&self, name: &str)
pub fn remove_source(&self, name: &str)
Removes name immediately. Existing input sinks and layer handles
become disconnected and cannot affect a later same-name source.
pub fn source_count(&self) -> usize
Trait Implementations§
Source§impl Clone for VideoCompositorHandle
impl Clone for VideoCompositorHandle
Source§fn clone(&self) -> VideoCompositorHandle
fn clone(&self) -> VideoCompositorHandle
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 moreAuto Trait Implementations§
impl Freeze for VideoCompositorHandle
impl RefUnwindSafe for VideoCompositorHandle
impl Send for VideoCompositorHandle
impl Sync for VideoCompositorHandle
impl Unpin for VideoCompositorHandle
impl UnsafeUnpin for VideoCompositorHandle
impl UnwindSafe for VideoCompositorHandle
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