pub struct GlobalEcho(/* private fields */);Implementations§
Source§impl GlobalEcho
impl GlobalEcho
pub fn new(context: &Context) -> Result<GlobalEcho>
Sourcepub fn set_taps(&self, taps: &[EchoTapConfig]) -> Result<()>
pub fn set_taps(&self, taps: &[EchoTapConfig]) -> Result<()>
An empty slice clears the taps. Alternatively, you can use clear_taps.
pub fn clear_taps(&self) -> Result<()>
pub fn gain(&self) -> DoubleProperty<'_>
pub fn get_filter_input(&self) -> Result<BiquadConfig>
pub fn set_filter_input(&self, cfg: &BiquadConfig) -> Result<()>
pub fn handle(&self) -> &Handle
pub fn into_handle(self) -> Handle
pub fn get_type(&self) -> Result<ObjectType>
Sourcepub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
pub fn cast_to<T: CastTarget>(&self) -> Result<Option<T>>
Try to cast this object to another object type. Will return
Ok(None) if this is because of a type mismatch, otherwise Err.
Clones self on success in order to prevent throwing the object
away on error.
pub fn get_userdata(&self) -> Result<Option<Arc<dyn Any + Send + Sync>>>
pub fn set_userdata( &self, userdata: Option<impl Any + Send + Sync>, ) -> Result<()>
pub fn config_delete_behavior( &self, config: &DeleteBehaviorConfig, ) -> Result<()>
pub fn current_time(&self) -> DoubleProperty<'_>
pub fn suggested_automation_time(&self) -> DoubleProperty<'_>
Trait Implementations§
Source§impl Clone for GlobalEcho
impl Clone for GlobalEcho
Source§fn clone(&self) -> GlobalEcho
fn clone(&self) -> GlobalEcho
Returns a duplicate 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 moreSource§impl Debug for GlobalEcho
impl Debug for GlobalEcho
Source§impl Hash for GlobalEcho
impl Hash for GlobalEcho
Source§impl Ord for GlobalEcho
impl Ord for GlobalEcho
Source§fn cmp(&self, other: &GlobalEcho) -> Ordering
fn cmp(&self, other: &GlobalEcho) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GlobalEcho
impl PartialEq for GlobalEcho
Source§impl PartialOrd for GlobalEcho
impl PartialOrd for GlobalEcho
impl Eq for GlobalEcho
impl StructuralPartialEq for GlobalEcho
Auto Trait Implementations§
impl Freeze for GlobalEcho
impl RefUnwindSafe for GlobalEcho
impl Send for GlobalEcho
impl Sync for GlobalEcho
impl Unpin for GlobalEcho
impl UnwindSafe for GlobalEcho
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