pub fn control_by_name<'a, T: 'a>(&'a mut self, control_name: &str) -> Result<T>
    where
        T: Control<'a>,
    {
        let id = ElemId::new(ElemIface::Mixer, control_name)?;
        Ok(T::from(&mut self.handle, id)?)
    }
/// Creates a `Control` from control name.
///
/// # Errors
///
/// * If control name is an invalid CString.
/// * If control does not exist.
/// * If `Control` elem_type() mismatches the type of underlying mixer control.
/// * If `Control` size() mismatches the number of value entries of underlying mixer control.
Creates a `Control` from control name.
Creates a ` Control ` from control name .
pub fn control_by_name<'a, T: 'a>(&'a mut self, control_name: &str) -> Result<T>
    where
        T: Control<'a>,
    {
        let id = ElemId::new(ElemIface::Mixer, control_name)?;
        Ok(T::from(&mut self.handle, id)?)
    }
pub fn control_by_name < ' a , T : ' a > ( & ' a mut self , control_name : & str ) -> Result < T > where T : Control < ' a > , { let id = ElemId :: new ( ElemIface :: Mixer , control_name ) ? ; Ok ( T :: from ( & mut self . handle , id ) ? ) }
Creates a `Control` from control name.
Creates a ` Control ` from control name .
&'a mut self
control_name
&str
&'a mut self
control_name
&str
errors
If control name is an invalid CString.
If control does not exist.
If `Control` elem_type() mismatches the type of underlying mixer control.
If `Control` size() mismatches the number of value entries of underlying mixer control.
If control name is an invalid CString . If control does not exist . If ` Control ` elem_type () mismatches the type of underlying mixer control . If ` Control ` size () mismatches the number of value entries of underlying mixer control .