Struct comfy_wgpu::TrackHandle
pub struct TrackHandle { /* private fields */ }Expand description
Controls a mixer track.
When a TrackHandle is dropped, the corresponding mixer
track will be removed.
Implementations§
§impl TrackHandle
impl TrackHandle
pub fn set_volume(
&self,
volume: impl Into<Value<Volume>>,
tween: Tween
) -> Result<(), CommandError>
pub fn set_volume( &self, volume: impl Into<Value<Volume>>, tween: Tween ) -> Result<(), CommandError>
Sets the (post-effects) volume of the mixer track.
Trait Implementations§
§impl From<&TrackHandle> for OutputDestination
impl From<&TrackHandle> for OutputDestination
§fn from(handle: &TrackHandle) -> OutputDestination
fn from(handle: &TrackHandle) -> OutputDestination
Converts to this type from the input type.
§impl From<&TrackHandle> for TrackId
impl From<&TrackHandle> for TrackId
§fn from(handle: &TrackHandle) -> TrackId
fn from(handle: &TrackHandle) -> TrackId
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TrackHandle
impl Send for TrackHandle
impl Sync for TrackHandle
impl Unpin for TrackHandle
impl UnwindSafe for TrackHandle
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